diff --git a/lib/hoptoad/v2.rb b/lib/hoptoad/v2.rb index 12a9bf0..6c09197 100644 --- a/lib/hoptoad/v2.rb +++ b/lib/hoptoad/v2.rb @@ -50,7 +50,7 @@ module Hoptoad def self.for_errbit_api(notice) { - :klass => notice['error']['class'], + :klass => notice['error']['class'] || notice['error']['key'], :message => notice['error']['message'], :backtrace => notice['error']['backtrace']['line'], -- libgit2 0.21.2