Skip to content

Propagate DataIntegrityError to the queryExecutionError middleware #672

Open
@gajus

Description

Desired Behavior

I want to be able to catch DataIntegrityError and similar errors in the queryExecutionError 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

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions