Skip to content

Render occurrences reported without a backtrace - #103

Merged
fractaledmind merged 1 commit into
mainfrom
fix/occurrence-without-backtrace
Oct 13, 2026
Merged

fractaledmind merged 1 commit into
mainfrom
fix/occurrence-without-backtrace

Conversation

@fractaledmind

Copy link
Copy Markdown
Owner

On Rails 7.1 and 7.2, Rails.error.report(SomeError.new("…")) with an exception that was never raised stores an occurrence whose backtrace is nil. Rails 8 fills one in. Occurrence#parsed_backtrace calls backtrace.split, so the error page and the error email both raise NoMethodError for that occurrence.

Backtrace.parse already treats nil as an empty list, so the fix is backtrace&.split. The new request test sets an occurrence's backtrace to nil and loads the error page. It fails without the fix on both Rails 7.1 and 8.1.

🤖 Generated with Claude Code

Rails 7 reports an exception that was never raised with a nil backtrace,
and the error page and email both called split on it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@fractaledmind
fractaledmind merged commit d1fb2af into main Oct 13, 2026
17 checks passed
@fractaledmind
fractaledmind deleted the fix/occurrence-without-backtrace branch October 13, 2026 12:17
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.

1 participant