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
Goal
Use
Event#errors
instead ofEvent#raw_exceptions
in thesuggestion_data
middlewareThis lets us use
Exception#detailed_message
(see #761) without having to extract it twice. We need thedetailed_message
on Ruby 3.2+ asdid_you_mean
suggestions live there instead of directly inmessage