umariomakerU
tRPC3y ago
4 replies
umariomaker

Is there a pattern for omitting certain types of errors from being returned in the API response

I'd prefer not to expose the ORM queries being used in my resolver. I'm already providing an onError function to send these errors to Sentry, but I can't figure out from the docs how to actually change the error message returned to the API caller.
CleanShot_2023-10-16_at_17.51.072x.png
Was this page helpful?