concordia-publishing-house/errbit

View on GitHub
app/views/issue_trackers/textile_body.txt.erb

Summary

Maintainability
Test Coverage
<% if notice = problem.notices.first %>
h1. <%= notice.message %>

h3. "See this exception on Errbit":<%= app_problem_url problem.app, problem %>

h2. Summary
<% if notice.request['url'].present? %>
h3. URL

"<%= notice.request['url'] %>":<%= notice.request['url'] %>
<% end %>
h3. Where

<%= notice.where %>

h3. Occurred

<%= notice.created_at.to_s(:micro) %>

h3. Similar

<%= (notice.problem.notices_count - 1).to_s %>

h2. Params

<pre><%= pretty_hash(notice.params) %></pre>

h2. Session

<pre><%= pretty_hash(notice.session) %></pre>

h2. Backtrace

| Line | File | Method |
<% notice.backtrace_lines.each do |line| %>| <%= line.number %> | <%= line.file_relative %> | *<%= line.method %>* |
<% end %>

h2. Environment

<% for key, val in notice.env_vars %>| <%= key %> | <%= val %> |
<% end %>

<% end %>