Commit e90007d2060ec3eee981fb6d4a16391165dca405
1 parent
32e9bbfc
Exists in
master
and in
1 other branch
If backtrace is blank, use notice message for fingerprint
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
app/models/error_report.rb
@@ -59,8 +59,10 @@ class ErrorReport | @@ -59,8 +59,10 @@ class ErrorReport | ||
59 | 59 | ||
60 | private | 60 | private |
61 | def fingerprint_source | 61 | def fingerprint_source |
62 | + # If backtrace is blank, use notice message for fingerprint | ||
63 | + backtrace_or_message = backtrace.lines.any? ? backtrace.id : message | ||
62 | { | 64 | { |
63 | - :backtrace => backtrace.id, | 65 | + :backtrace_or_message => backtrace_or_message, |
64 | :error_class => error_class, | 66 | :error_class => error_class, |
65 | :component => component, | 67 | :component => component, |
66 | :action => action, | 68 | :action => action, |