Catch TRPCError, ZoddError on the front-end
i am throwing a TRPCError in a mutation. i dont understand how to catch this error in the OnError method. Please help me with this.
i have the following:
ServerSide
ClientSide
everyting is undefined except for message. but i'd like to include ZodError to the cause. doesn't work either.
browser console.
i have the following:
ServerSide
ClientSide
everyting is undefined except for message. but i'd like to include ZodError to the cause. doesn't work either.
browser console.
