-
Notifications
You must be signed in to change notification settings - Fork 301
Closed
Labels
Description
Hello,
Perhaps I'm missing something obvious, but I somewhat was expecting withStmt' to return a SqlError, not a user error:
user error (Postgresql.withStmt': bad result status FatalError (("PGRES_FATAL_ERROR","ERROR: duplicate key value violates...
I guess this as to do with using fail which then gets turned into a UserError/IOError by with.
Would there be any way to bracket an insert just on SqlError, or do I have to bracket into the far more general IOError?
Thanks