lib/airbrake.rb in airbrake-4.3.5 vs lib/airbrake.rb in airbrake-4.3.6
- old
+ new
@@ -174,10 +174,10 @@
def build_notice_for(exception, opts = {})
exception_classes = [exception.class.to_s]
exception = unwrap_exception(exception)
opts = opts.merge(:exception => exception) if exception.is_a?(Exception)
opts = opts.merge(exception.to_hash) if exception.respond_to?(:to_hash)
- opts = opts.merge(exception_classes: exception_classes)
+ opts = opts.merge(:exception_classes => exception_classes)
Notice.new(configuration.merge(opts))
end
def unwrap_exception(exception)
if exception.respond_to?(:original_exception)