bugsnag / bugsnag-ruby

BugSnag error monitoring & reporting software for rails, sinatra, rack and ruby
https://docs.bugsnag.com/platforms/ruby
MIT License
246 stars 174 forks source link

Use Event#errors in suggestion_data middleware #763

Closed imjoehaines closed 1 year ago

imjoehaines commented 1 year ago

Goal

Use Event#errors instead of Event#raw_exceptions in the suggestion_data middleware

This lets us use Exception#detailed_message (see #761) without having to extract it twice. We need the detailed_message on Ruby 3.2+ as did_you_mean suggestions live there instead of directly in message