lib/airbrake.rb in airbrake-3.0.5 vs lib/airbrake.rb in airbrake-3.0.6

- old
+ new

@@ -135,10 +135,10 @@ end end def build_notice_for(exception, opts = {}) exception = unwrap_exception(exception) - opts = opts.merge(:exception => exception) + opts = opts.merge(:exception => exception) if exception.is_a?(Exception) opts = opts.merge(exception.to_hash) if exception.respond_to?(:to_hash) Notice.new(configuration.merge(opts)) end def unwrap_exception(exception)