concordia-publishing-house/errbit

View on GitHub
app/views/mailer/err_notification.text.erb

Summary

Maintainability
Test Coverage
An err has just occurred in <%= @notice.environment_name %>: <%= raw(@notice.message) %>

This err has occurred <%= pluralize @notice.problem.notices_count, 'time' %>. You should really look into it here:

  <%= app_problem_url(@app, @notice.problem) %>


ERROR MESSAGE:

<%= raw(@notice.message) %>


WHERE:

<%= @notice.where %>

<% @notice.in_app_backtrace_lines.each do |line| %>
  <%= line %>
<% end %>

<%- if @notice.app_version.present? %>
APP VERSION:

<%= @notice.app_version %>
<%- end %>

URL:

<%= @notice.request['url'] %>


BROWSER:

<%= @notice.user_agent_string %>


<%- if @notice.user_attributes.present? %>
USER:

<%- @notice.user_attributes.each do |key, value| %>
<%= key.to_s.titleize %>: <%= value.to_s %>
<%- end %>

<%- end %>

BACKTRACE:

<% @notice.backtrace_lines.each do |line| %>
  <%= line %>
<% end %>