Commit b045445df723200a56b7d23d2a54ac4649de8d1c

Authored by Nathan Broadbent
1 parent 0322244c
Exists in master and in 1 other branch production

Fixed issue #76 - A single js backtrace line was not being wrapped in an array.

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/notice.rb
... ... @@ -45,7 +45,7 @@ class Notice
45 45  
46 46 err.notices.create!({
47 47 :message => hoptoad_notice['error']['message'],
48   - :backtrace => hoptoad_notice['error']['backtrace']['line'],
  48 + :backtrace => [hoptoad_notice['error']['backtrace']['line']].flatten,
49 49 :server_environment => hoptoad_notice['server-environment'],
50 50 :request => hoptoad_notice['request'],
51 51 :notifier => hoptoad_notice['notifier']
... ...