Drizzle hides DB errors, shows just "failed query"
Drizzle doesn't show anymore errors. Any way to get them back?

1 Reply
If you inspect the other properties of the error that was caught, you can see more information. e.g.
console.dir({ ...error }, { depth: null });
and somewhere in there (I forget which property) you'll see the actual error message, something like NeonDbError: cannot insert multiple commands into a prepared statement
, etc.
I think it might just be in the stackTrace
Another post here says it's in the error.cause
property - see "Unique constraint violation error is not clearly surfaced in Drizzle ORM"