new Error.

Your log statement should include the invalid id.