From 6b076cfe911727df039e70d9f92f8175d6df0d27 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Wed, 1 Feb 2012 01:07:03 +0800 Subject: [PATCH] Added compatibility for older verson of hoptoad_notifier (use error 'class' || 'key' for :klass field.) --- lib/hoptoad/v2.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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