提交 760cb633 编写于 作者: H Hongli Lai (Phusion) 提交者: Joshua Peek

Make the default 500 Internal Server Error page more friendly. Many people...

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: NJoshua Peek <josh@joshpeek.com>
上级 0d9e904d
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册