From a971c0d227e596128142a182870aba1a89cf1c6a 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. --- .../action_dispatch/middleware/show_exceptions.rb | 4 +++- 1 files changed, 3 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..b8ca372 100644 --- a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb +++ b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb @@ -30,7 +30,9 @@ 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 to find out what went wrong."]] def initialize(app, consider_all_requests_local = false) @app = app -- 1.6.0.5