lib/resque/failure/hoptoad.rb in resque-mongo-1.8.1 vs lib/resque/failure/hoptoad.rb in resque-mongo-1.9.8.1

- old
+ new

@@ -81,11 +81,11 @@ x.name "Resqueue" x.version "0.1" x.url "http://github.com/defunkt/resque" end x.error do - x.class exception.class.name + x.tag! "class", exception.class.name x.message "#{exception.class.name}: #{exception.message}" x.backtrace do fill_in_backtrace_lines(x) end end @@ -107,10 +107,10 @@ end end def fill_in_backtrace_lines(x) - exception.backtrace.each do |unparsed_line| + Array(exception.backtrace).each do |unparsed_line| _, file, number, method = unparsed_line.match(INPUT_FORMAT).to_a x.line :file => file,:number => number end end