Commit e90007d2060ec3eee981fb6d4a16391165dca405

Authored by Nathan Broadbent
1 parent 32e9bbfc
Exists in master and in 1 other branch production

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 59  
60 60 private
61 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 66 :error_class => error_class,
65 67 :component => component,
66 68 :action => action,
... ...