Theo's Typesafe CultTTC
Theo's Typesafe Cult3y ago
3 replies
asheeshh

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
image.png
Was this page helpful?