new TRPCError "cause" field is not working

I have this error and lets say i want to provide more information and a custom error code in the cause field. But on the client the cause field is just not there i can't get the cause field.... , Am i doing anything wrong?
throw new TRPCError({
cause: { moreInfo: "moreInfo", code: 123 },
code: "FORBIDDEN",
message: "message",
});
throw new TRPCError({
cause: { moreInfo: "moreInfo", code: 123 },
code: "FORBIDDEN",
message: "message",
});
3 Replies
minotaurr
minotaurr17mo ago
I totally get an error during deployment highlighting this same code very similar structure, suggesting to use RTCError
minotaurr
minotaurr17mo ago
did you find the solution ?
Want results from more Discord servers?
Add your server