Join Slack
Powered by
is there a Prisma error that covers all possible e...
# orm-help
d
Dev__
09/02/2021, 10:04 AM
is there a Prisma error that covers all possible exceptions. example
Copy code
catch(error) { if (error instanceof AnyPrismaError) { ... } }
Dev__
09/02/2021, 10:07 AM
I dont want to use a bunch if statements, I just want to log any error if its a prisma error
r
Ryan
09/02/2021, 10:21 AM
@Dev__
👋 Currently not, you need to check for a specific error. It would be great if you could open a
feature request
so that we can look into this
👍 1
d
Dev__
09/02/2021, 12:50 PM
https://github.com/prisma/prisma/issues/9082
🙌 1
4
Views
Open in Slack
Previous
Next