Skip to content

Include error.message in ErrorBoundary for better Sentry grouping - #347

Merged
MykhailoAlekseiev21 merged 1 commit into
masterfrom
error-boundary-include-message
Mar 12, 2026
Merged

MykhailoAlekseiev21 merged 1 commit into
masterfrom
error-boundary-include-message

Conversation

@MykhailoAlekseiev21

Copy link
Copy Markdown
Contributor

Summary

  • Include error.message alongside error.name in ErrorBoundary.componentDidCatch log output
  • Changes format from ErrorBoundary(shell / Comp): TypeError to ErrorBoundary(shell / Comp): TypeError | Cannot read property 'foo' of undefined

Motivation

Currently, ErrorBoundary.componentDidCatch logs errors using only error.name (e.g. "TypeError", "Error"). Since most thrown errors share a handful of generic type names, Sentry groups many unrelated failures into one mega-issue per component. This makes it difficult to triage and prioritize individual bugs.

By appending error.message to the log string, each unique error produces a distinct fingerprint in Sentry. This splits the mega-issues into separate, actionable entries — making it much easier to identify, track, and resolve individual failures.

🤖 Generated with Claude Code

…ping

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@MykhailoAlekseiev21
MykhailoAlekseiev21 force-pushed the error-boundary-include-message branch from ff6953c to abf152d Compare March 11, 2026 14:51
@MykhailoAlekseiev21
MykhailoAlekseiev21 merged commit 5cdeaee into master Mar 12, 2026
2 checks passed
@MykhailoAlekseiev21
MykhailoAlekseiev21 deleted the error-boundary-include-message branch March 12, 2026 11:06
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.

3 participants