aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2010-05-29 19:26:02 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2010-06-04 18:25:32 -0700
commitbd9805871b576984e13c3d99558eda27d22c06c5 (patch)
tree207a1fa97281a46c21eaca1a80cd4c211d5ee4d2 /actionpack/lib/action_dispatch/middleware/show_exceptions.rb
parent55a5c7068cc75a14f3289385eb1637412f98dd48 (diff)
downloadrails-bd9805871b576984e13c3d99558eda27d22c06c5.tar.gz
rails-bd9805871b576984e13c3d99558eda27d22c06c5.tar.bz2
rails-bd9805871b576984e13c3d99558eda27d22c06c5.zip
Include backtrace in failsafe log. Rescue possible exceptions in failsafe response.
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 2dd2ec9fe9..f9e81a02d3 100644
--- a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
+++ b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
@@ -72,7 +72,7 @@ module ActionDispatch
rescue_action_in_public(exception)
end
rescue Exception => failsafe_error
- $stderr.puts "Error during failsafe response: #{failsafe_error}"
+ $stderr.puts "Error during failsafe response: #{failsafe_error}\n #{failsafe_error.backtrace * "\n "}"
FAILSAFE_RESPONSE
end