diff --git a/app/views/exception_notifier/_data.text.erb b/app/views/exception_notifier/_data.text.erb index 476fb4d9..050950e8 100644 --- a/app/views/exception_notifier/_data.text.erb +++ b/app/views/exception_notifier/_data.text.erb @@ -1,10 +1,15 @@ <% if @data['backtrace'] %> -<% @data['errors'].each do |error| %> +<% @data.dig(:params, 'errors')&.each do |error| %> # <%= error['type'] %>: <%= error['message'] %> <%= Terminal::Table.new headings: error['backtrace'].first.keys, rows: error['backtrace'].map(&:values) %> <% end %> + +<%= @data.dig(:params, 'context', 'userAgent') %> + +<<%= @data.dig(:params, 'context', 'url') %>> + <% else %> ```ruby <%= raw PP.pp(@data, "") %>