Skip to content

Commit

Permalink
Make the default 500 Internal Server Error page more friendly. Many p…
Browse files Browse the repository at this point in the history
…eople don't know they're supposed to look in the log files. [#2716 state:resolved]

Signed-off-by: Joshua Peek <josh@joshpeek.com>
  • Loading branch information
FooBarWidget authored and josh committed May 27, 2009
1 parent 0d9e904 commit 760cb63
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion actionpack/lib/action_dispatch/middleware/show_exceptions.rb
Expand Up @@ -31,7 +31,10 @@ class ShowExceptions
})

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
Expand Down

0 comments on commit 760cb63

Please sign in to comment.