diff options
author | Hongli Lai (Phusion) <hongli@phusion.nl> | 2009-05-27 15:01:03 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-05-27 15:01:03 -0500 |
commit | 760cb633396a954b465ec0dd0344915185bddec1 (patch) | |
tree | d4904dd0fc25d6a9f641f532536c2bd4750cc972 /actionpack/lib/action_dispatch | |
parent | 0d9e904da35b41c8796b026d63675d4733505c91 (diff) | |
download | rails-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/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/show_exceptions.rb | 5 |
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 |