From 9fcca8a7826981f55133e3a77521cf1724ec69b6 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Mon, 7 Oct 2013 11:59:54 +0200 Subject: Fix issue #157: message lors d'un PDOConnectionException MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le message est loggué dans le fichier qui va bien et un message est affiché à l'écran : ### Application problem ### See logs files --- public/index.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'public') diff --git a/public/index.php b/public/index.php index 4e39d028e..64aabb609 100755 --- a/public/index.php +++ b/public/index.php @@ -38,7 +38,12 @@ if (file_exists (PUBLIC_PATH . '/install.php')) { require (APP_PATH . '/App_FrontController.php'); - $front_controller = new App_FrontController (); - $front_controller->init (); - $front_controller->run (); + try { + $front_controller = new App_FrontController (); + $front_controller->init (); + $front_controller->run (); + } catch (PDOConnectionException $e) { + Minz_Log::record ($e->getMessage (), Minz_Log::ERROR); + print '### Application problem ###'."\n".'See logs files'; + } } -- cgit v1.2.3