Commit ad31635ef385777a92b1715c70ebdf8f4dca770e
1 parent
fc91d2f9
Exists in
master
and in
1 other branch
Rewrote the err_notification text email to conform it to the new html template
Showing
1 changed file
with
27 additions
and
5 deletions
Show diff stats
app/views/mailer/err_notification.text.erb
1 | -An err has just occurred in <%= @notice.err.environment %>: <%= raw(@notice.err.message) %> | |
1 | +An err has just occurred in <%= @app.name %>, on the <%= @notice.err.environment %> environment. | |
2 | 2 | |
3 | -This err has occurred <%= pluralize @notice.err.notices_count, 'time' %>. You should really look into it here: | |
3 | +This err has occurred <%= pluralize @notice.err.notices_count, 'time' %>. | |
4 | 4 | |
5 | - <%= app_err_url(@app, @notice.err) %> | |
5 | +You can view it on Errbit here: <%= app_err_url(@app, @notice.err) %> | |
6 | 6 | |
7 | -Backtrace follows: | |
8 | 7 | |
9 | -<%= @notice.backtrace.collect { |l| l ? " #{l['file']}:#{l['number']}" : nil }.compact.join("\n") %> | |
8 | +ERROR MESSAGE: | |
9 | + | |
10 | +<%= raw(@notice.err.message) %> | |
11 | + | |
12 | + | |
13 | +WHERE: | |
14 | + | |
15 | +<%= @notice.err.where %> | |
16 | + | |
17 | +<% @notice.app_backtrace.map {|l| "#{l['file']}:#{l['number']}" }.each do |line| %> | |
18 | + <%= line %> | |
19 | +<% end %> | |
20 | + | |
21 | + | |
22 | +URL: | |
23 | + | |
24 | +<%= @notice.request['url'] %> | |
25 | + | |
26 | + | |
27 | +BACKTRACE: | |
28 | + | |
29 | +<% @notice.backtrace.map {|l| l ? "#{l['file']}:#{l['number']}" : nil }.compact.each do |line| %> | |
30 | + <%= line %> | |
31 | +<% end %> | |
10 | 32 | ... | ... |