Skip to content
This repository was archived by the owner on Mar 11, 2018. It is now read-only.

Commit 77c2797

Browse files
committed
Commenting exception handler change
1 parent d3fd517 commit 77c2797

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/scrolls/rails/log_subscriber.rb

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ def process_action(event)
1515
exception = event.payload[:exception]
1616

1717
if exception.present?
18+
# In (I think) Rails 3.2.9 event.payload[:exception] was changed from
19+
# an Exception object to an Array containing the e.class.name and
20+
# e.message. Adding handling for this case here.
1821
if exception.is_a?(Array)
1922
exception_class_name, exception_message = exception
2023
exception = exception_class_name.constantize.new(exception_message)

0 commit comments

Comments
 (0)