Skip to content

Commit

Permalink
Merge [7006] to stable: fix precedence error in failsafe rescue. Refe…
Browse files Browse the repository at this point in the history
…rences #8625.

git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/1-2-stable@7007 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
jeremy committed Jun 12, 2007
1 parent 74191ed commit 5c6a0d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/dispatcher.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def dispatch(cgi = nil, session_options = ActionController::CgiRequest::DEFAULT_
end end
rescue Exception => exception # errors from CGI dispatch rescue Exception => exception # errors from CGI dispatch
failsafe_response(output, '500 Internal Server Error', exception) do failsafe_response(output, '500 Internal Server Error', exception) do
controller ||= ApplicationController rescue ActionController::Base controller ||= (ApplicationController rescue ActionController::Base)
controller.process_with_exception(request, response, exception).out(output) controller.process_with_exception(request, response, exception).out(output)
end end
ensure ensure
Expand Down

0 comments on commit 5c6a0d5

Please sign in to comment.