throwing custom errors from trpc mutations
any idea why trpc is ignoring the catch expression?
it just throws its own error about unique constraint violation, i want to throw this custom error when there's a unique constraint violation in prisma but trpc is ignoring my catch expression completely
1 Reply
Are you sure the error returned is instance of Prisma.PrismaClientKnownRequestError
Try it without that