0

The documentation says "Here you can handle or change errors.". It then continues without any mention on how to actually do this.

Searching for how to do this did not yield any results so I'm trying my luck here.

HMR
  • 37,593
  • 24
  • 91
  • 160
  • @Unmitigated Yes, I did try `opts.error = new TRPCError({message: 'changed error',code: 'INTERNAL_SERVER_ERROR',})` and `opts.error.message="changed"` but that did not change the error returned by the server. – HMR Jul 19 '23 at 15:55

0 Answers0