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.
![](https://utfs.io/f/a171d7ed-dae8-462c-b0d1-530ff31583a9-t9smol.50.07.png)
1 Reply
I wouldn't wanna match on the message string of course.
looks like I can include anything inside
case
object.