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

19 lines
425 B
Text

<% if @data[:javascript_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) %>
```
<% end %>
<%= @data.dig(:params, 'context', 'userAgent') %>
<<%= @data.dig(:params, 'context', 'url') %>>
<% else %>
```ruby
<%= raw PP.pp(@data, "") %>
```
<% end %>