2021-05-29 20:42:45 +00:00
|
|
|
<% if @data[:javascript_backtrace] %>
|
2021-03-19 22:54:56 +00:00
|
|
|
<% @data.dig(:params, 'errors')&.each do |error| %>
|
2021-03-19 22:41:03 +00:00
|
|
|
# <%= error['type'] %>: <%= error['message'] %>
|
|
|
|
|
2021-04-07 20:47:58 +00:00
|
|
|
```
|
2021-04-27 14:25:37 +00:00
|
|
|
<%= Terminal::Table.new headings: error['backtrace'].first.keys, rows: error['backtrace'].map(&:values) %>
|
2021-04-07 20:47:58 +00:00
|
|
|
```
|
2021-03-19 22:41:03 +00:00
|
|
|
|
|
|
|
<% end %>
|
2021-03-19 22:54:56 +00:00
|
|
|
|
|
|
|
<%= @data.dig(:params, 'context', 'userAgent') %>
|
|
|
|
|
|
|
|
<<%= @data.dig(:params, 'context', 'url') %>>
|
|
|
|
|
2021-03-19 22:41:03 +00:00
|
|
|
<% else %>
|
|
|
|
```ruby
|
|
|
|
<%= raw PP.pp(@data, "") %>
|
|
|
|
```
|
|
|
|
<% end %>
|