Unique key constraint error

I am using the latest create-t3-app and I have a field that is unique in my shema. Now I want to handle this error nicely and the error I am getting right now doesnot seem pretty enough to be displayed on the client side.
Invalid `prisma.commercialOffer.create()` invocation:


Unique constraint failed on the constraint: `CommercialOffer_commercialOfferNo_key`
Invalid `prisma.commercialOffer.create()` invocation:


Unique constraint failed on the constraint: `CommercialOffer_commercialOfferNo_key`
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server