t
tRPC
t
tRPC
Can i use try/catch in procedures?
Original message was deleted
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,111
Members
View on Discord
N
Nick
•
5/2/23, 12:54 PM
Yes
N
Nick
•
5/2/23, 2:10 PM
You don
’t need to do the wrapping yourself
, tRPC does that automatically
. If you need to throw an error just throw it and then you can use an errorFormatter to manipulate what gets sent to the client