Skip to content

Error classes are wrapped twice #7035

Closed

Description

@janpio

Client error messages always include the exception type twice, one with an added 2 at the end:

PrismaClientInitializationError2 [PrismaClientInitializationError]: 
Invalid `prisma.user.create()` invocation:
...

This does not seem to be intended and should be fixed.

Internal discussion: https://prisma-company.slack.com/archives/C016KUHB1R6/p1620728621001000

That comes from esbuild
It means that we’re for whatever reason probably bundling the runtime twice
So someone would need to debug the esbuild output

Activity

  1. janpio commented on Aug 25, 2021

    @janpio
    ContributorAuthor

    This got worse along the way, we are now up to PrismaClientInitializationError3 (see #8836)

  2. janpio commented on Aug 27, 2021

    @janpio
    ContributorAuthor

    Also effects other error types now: PrismaClientKnownRequestError3 [PrismaClientKnownRequestError] (via #8839 (comment))

  3. added this to the 2.31.0 / 3.0.x milestone on Aug 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions