Commit 6b076cfe911727df039e70d9f92f8175d6df0d27

Authored by Nathan Broadbent
1 parent 20a64242
Exists in master and in 1 other branch production

Added compatibility for older verson of hoptoad_notifier (use error 'class' || '…

…key' for :klass field.)
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/hoptoad/v2.rb
@@ -50,7 +50,7 @@ module Hoptoad @@ -50,7 +50,7 @@ module Hoptoad
50 50
51 def self.for_errbit_api(notice) 51 def self.for_errbit_api(notice)
52 { 52 {
53 - :klass => notice['error']['class'], 53 + :klass => notice['error']['class'] || notice['error']['key'],
54 :message => notice['error']['message'], 54 :message => notice['error']['message'],
55 :backtrace => notice['error']['backtrace']['line'], 55 :backtrace => notice['error']['backtrace']['line'],
56 56