Catch the error on trycatch and show the message
Hello, I am throwing a TRPCError inside my procedure
How can I get this
message
in my react onSubmit
handler?
`1 Reply
Do you have an error formatter set up? https://trpc.io/docs/server/error-formatting
Error Formatting | tRPC
The error formatting in your router will be inferred all the way to your client (& React components)