t
tRPC
t
tRPC
How to return error from procedure
Original message was deleted
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,111
Members
View on Discord
A
Ahmed Elsakaan
•
4/10/23, 11:11 AM
https://trpc.io/docs/server/error-handling#throwing-errors
Error Handling | tRPC
Whenever an error occurs in a procedure
, tRPC responds to the client with an object that includes an
"error
" property
. This property contains all the information that you need to handle the error in the client
.