when throwing a TRPCError, is there a way to include an internal error code ?
for the given screenshot, if such error happens I wanna prompt the user to login or something.
1 Reply
I wouldn't wanna match on the message string of course.
looks like I can include anything inside
case
object.