lib/action_dispatch/middleware/show_exceptions.rb in actionpack-4.0.13 vs lib/action_dispatch/middleware/show_exceptions.rb in actionpack-4.1.0.beta1

- old
+ new

@@ -27,11 +27,14 @@ end def call(env) @app.call(env) rescue Exception => exception - raise exception if env['action_dispatch.show_exceptions'] == false - render_exception(env, exception) + if env['action_dispatch.show_exceptions'] == false + raise exception + else + render_exception(env, exception) + end end private def render_exception(env, exception)