diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2010-05-29 19:26:02 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-06-04 18:25:32 -0700 |
commit | bd9805871b576984e13c3d99558eda27d22c06c5 (patch) | |
tree | 207a1fa97281a46c21eaca1a80cd4c211d5ee4d2 /actionpack/lib/action_dispatch/middleware/templates | |
parent | 55a5c7068cc75a14f3289385eb1637412f98dd48 (diff) | |
download | rails-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/templates')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb b/actionpack/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb index 09ff052fd0..e963b04524 100644 --- a/actionpack/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb +++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb @@ -13,7 +13,7 @@ request_dump = clean_params.empty? ? 'None' : clean_params.inspect.gsub(',', ",\n") def debug_hash(hash) - hash.sort_by { |k, v| k.to_s }.map { |k, v| "#{k}: #{v.inspect}" }.join("\n") + hash.sort_by { |k, v| k.to_s }.map { |k, v| "#{k}: #{v.inspect rescue $!.message}" }.join("\n") end %> |