5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 02:41:41 +00:00
panel/app/views/exception_notifier/_data.text.erb

19 lines
428 B
Text

<% if @data[:_backtrace] %>
<% @data.dig(:params, 'errors')&.each do |error| %>
# <%= error['type'] %>: <%= error['message'] %>
```
<%= Terminal::Table.new headings: error['backtrace'].first.keys, rows: error['backtrace'].map(&:values).map(&:strip) %>
```
<% end %>
<%= @data.dig(:params, 'context', 'userAgent') %>
<<%= @data.dig(:params, 'context', 'url') %>>
<% else %>
```ruby
<%= raw PP.pp(@data, "") %>
```
<% end %>