mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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>
This commit is contained in:
parent
0d9e904da3
commit
760cb63339
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue