Commit ba8148ef2231bb199ef433dae7ed5d8fee451cf6
1 parent
56b3967d
Exists in
master
and in
1 other branch
Only show FULL BACKTRACE if there is a backtrace
Showing
1 changed file
with
8 additions
and
6 deletions
Show diff stats
app/views/mailer/err_notification.html.haml
| ... | ... | @@ -48,9 +48,11 @@ |
| 48 | 48 | %td(style="text-align: right; padding-right: 10px; color: #6a6a6a;")= key.to_s.titleize + ":" |
| 49 | 49 | %td= auto_link(value.to_s) |
| 50 | 50 | %br |
| 51 | - %p.heading FULL BACKTRACE: | |
| 52 | - - @notice.backtrace_lines.each do |line| | |
| 53 | - %p.backtrace | |
| 54 | - = link_to_source_file(line) do | |
| 55 | - = line.to_s | |
| 56 | - %br | |
| 51 | + - if @notice.backtrace_lines.any? | |
| 52 | + %br | |
| 53 | + %p.heading FULL BACKTRACE: | |
| 54 | + - @notice.backtrace_lines.each do |line| | |
| 55 | + %p.backtrace | |
| 56 | + = link_to_source_file(line) do | |
| 57 | + = line.to_s | |
| 58 | + %br | ... | ... |