aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-01-12 10:01:31 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-01-12 11:15:10 -0800
commit1d9c555297c15b6d5212e65c1afec718e043ce45 (patch)
tree25b2afac0340091a4637ce93897e381e7cc82c4d /actionpack/lib/action_dispatch/middleware/show_exceptions.rb
parentdaada51d1051948c3e6de963a90c4b5bb5bf142b (diff)
downloadrails-1d9c555297c15b6d5212e65c1afec718e043ce45.tar.gz
rails-1d9c555297c15b6d5212e65c1afec718e043ce45.tar.bz2
rails-1d9c555297c15b6d5212e65c1afec718e043ce45.zip
reraising should be in the rescue block
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/show_exceptions.rb')
-rw-r--r--actionpack/lib/action_dispatch/middleware/show_exceptions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
index 936fd548b9..11739e08d9 100644
--- a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
+++ b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
@@ -53,8 +53,8 @@ module ActionDispatch
exception = ActionController::RoutingError.new("No route matches #{env['PATH_INFO'].inspect}")
end
rescue Exception => exception
+ raise exception if env['action_dispatch.show_exceptions'] == false
end
- raise exception if env['action_dispatch.show_exceptions'] == false
exception ? render_exception(env, exception) : [status, headers, body]
end