T
tRPC

❓-help

Better error tracing when using TRPC routers

SBSamuel Barnholdt1/9/2024
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:
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
Jump to solution
No description
No description
Solution
SBSamuel Barnholdt1/9/2024
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

Looking for more? Join the community!