From ae4e1e85d13de4e5735f976d29c529b6643effb3 Mon Sep 17 00:00:00 2001 From: Hongli Lai (Phusion) Date: Mon, 25 May 2009 17:36:21 +0200 Subject: [PATCH] Make the default 500 Internal Server Error page more friendly. Many people don't know they're supposed to look in the log files. --- .../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 4d59866..c222688 100644 --- a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb +++ b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb @@ -30,7 +30,10 @@ module ActionDispatch }) FAILSAFE_RESPONSE = [500, {'Content-Type' => 'text/html'}, - ['

500 Internal Server Error

']] + ["

500 Internal Server Error

" << + "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."]] def initialize(app, consider_all_requests_local = false) @app = app -- 1.6.0.5