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`
Was this page helpful?