T
tRPC

when throwing a TRPCError, is there a way to include an internal error code ?

when throwing a TRPCError, is there a way to include an internal error code ?

AEAhmed Eid9/21/2022
for the given screenshot, if such error happens I wanna prompt the user to login or something.
AEAhmed Eid9/22/2022
I wouldn't wanna match on the message string of course. looks like I can include anything inside case object.

Looking for more? Join the community!

T
tRPC

when throwing a TRPCError, is there a way to include an internal error code ?

Join Server