Propagate DataIntegrityError
to the queryExecutionError
middleware
#672
Labels
DataIntegrityError
to the queryExecutionError
middleware
#672
Desired Behavior
I want to be able to catch
DataIntegrityError
and similar errors in thequeryExecutionError
middleware (or a new middleware)https://github.com/gajus/slonik/blob/main/packages/slonik/src/connectionMethods/one.ts#L47
Motivation
It would make it easier to log errors with additional context when they happen.
Implementation
The text was updated successfully, but these errors were encountered: