From 39fc09479099a3a578f67dca1188b6684cea8caf Mon Sep 17 00:00:00 2001 From: f Date: Fri, 19 Mar 2021 19:54:56 -0300 Subject: [PATCH] =?UTF-8?q?tabla=20correcta=20y=20m=C3=A1s=20informaci?= =?UTF-8?q?=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/exception_notifier/_data.text.erb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/views/exception_notifier/_data.text.erb b/app/views/exception_notifier/_data.text.erb index 476fb4d..050950e 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, "") %>