lib/active_support/notifications/instrumenter.rb in activesupport-5.0.0.beta1.1 vs lib/active_support/notifications/instrumenter.rb in activesupport-5.0.0.beta2
- old
+ new
@@ -19,9 +19,10 @@
listeners_state = start name, payload
begin
yield payload
rescue Exception => e
payload[:exception] = [e.class.name, e.message]
+ payload[:exception_object] = e
raise e
ensure
finish_with_state listeners_state, name, payload
end
end