Skip to content

fix(node): Capture errors in tRPC middleware #9782

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 11, 2023
Merged

Conversation

lforst
Copy link
Contributor

@lforst lforst commented Dec 7, 2023

Fixes #9780

Looks like I had a tiny bit of a brainfart in the previous implementation. tRPC invokations shouldn't directly throw but instead return an object with ok: false and an error field. This is the error we should report instead.

@lforst lforst marked this pull request as ready for review December 11, 2023 10:05
@lforst lforst requested review from Lms24 and AbhiPrasad December 11, 2023 10:05
@lforst lforst merged commit 93bbeb7 into develop Dec 11, 2023
@lforst lforst deleted the lforst-fix-9780 branch December 11, 2023 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Errors are not captured when using the tRPC & Sentry integration
2 participants