Effect CommunityEC
Effect Community7mo ago
2 replies
Kristian Notari

Extracting Detailed Error Messages with Effect-SQL and Kysely

I'm trying effect-sql via the kysely package to work with kysely. I'm using node pg as a driver. When a query errors, the Effect Cause is something that doesn't add any description to the error. For example while inserting, I get the failing row, but no error explanation on WHY it errored, like "constraint X error" or "duplicate" or something else. IS there a way to extrapolate such error messages?
Was this page helpful?