aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorHongli Lai (Phusion) <hongli@phusion.nl>2009-05-27 15:01:03 -0500
committerJoshua Peek <josh@joshpeek.com>2009-05-27 15:01:03 -0500
commit760cb633396a954b465ec0dd0344915185bddec1 (patch)
treed4904dd0fc25d6a9f641f532536c2bd4750cc972 /actionpack
parent0d9e904da35b41c8796b026d63675d4733505c91 (diff)
downloadrails-760cb633396a954b465ec0dd0344915185bddec1.tar.gz
rails-760cb633396a954b465ec0dd0344915185bddec1.tar.bz2
rails-760cb633396a954b465ec0dd0344915185bddec1.zip
Make the default 500 Internal Server Error page more friendly. Many people don't know they're supposed to look in the log files. [#2716 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/middleware/show_exceptions.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
index 1bd6a86bec..bfff307669 100644
--- a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
+++ b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
@@ -31,7 +31,10 @@ module ActionDispatch
})
FAILSAFE_RESPONSE = [500, {'Content-Type' => 'text/html'},
- ['<html><body><h1>500 Internal Server Error</h1></body></html>']]
+ ["<html><body><h1>500 Internal Server Error</h1>" <<
+ "If you are the administrator of this website, then please read this web " <<
+ "application's log file and/or the web server's log file to find out what " <<
+ "went wrong.</body></html>"]]
def initialize(app, consider_all_requests_local = false)
@app = app