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
Solution:Jump to 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
1 Reply
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