Skip to content

tRPC plugin: generated router should trap Prisma errors and wrap into proper trpc errors #333

@ymc9

Description

@ymc9

Today if a Prisma error is thrown (e.g., access policy denied), the HTTP request ends up with a generic 500 error.

Reported by @Azzerty23

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions