lib/rollbar/middleware/rails/show_exceptions.rb in rollbar-0.12.13 vs lib/rollbar/middleware/rails/show_exceptions.rb in rollbar-0.12.14
- old
+ new
@@ -4,21 +4,21 @@
module ShowExceptions
include ExceptionReporter
def render_exception_with_rollbar(env, exception)
key = 'action_dispatch.show_detailed_exceptions'
-
+
# don't report production exceptions here as it is done below
# in call_with_rollbar() when show_detailed_exception is false
if not env.has_key?(key) or env[key]
report_exception_to_rollbar(env, exception)
end
render_exception_without_rollbar(env, exception)
end
-
+
def call_with_rollbar(env)
call_without_rollbar(env)
- rescue => exception
+ rescue Exception => exception
# won't reach here if show_detailed_exceptions is true
report_exception_to_rollbar(env, exception)
raise exception
end