Samuel Barnholdt
Samuel Barnholdt11mo ago

Better error tracing when using TRPC routers

Hi, I'm using a trpc router and noticed that the error trace report is more or less non existent as compared to just nextjs api routes. Can I make trpc behave like this? See images for reference
No description
No description
Solution:
Okay solved it. Turns out I did catch all errors in the api handler, so to get better messages in dev mode, just throwing the error fixes it
No description
Jump to solution
1 Reply
Solution
Samuel Barnholdt
Samuel Barnholdt11mo ago
Okay solved it. Turns out I did catch all errors in the api handler, so to get better messages in dev mode, just throwing the error fixes it
No description