From 0416c05f9cd2b8610b9360eb829339d7df22b793 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Fri, 8 Jun 2012 12:06:54 -0400 Subject: [PATCH] add reason why Propel connection failed --- airtime_mvc/application/models/Preference.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/application/models/Preference.php b/airtime_mvc/application/models/Preference.php index 248442af5..d1b821488 100644 --- a/airtime_mvc/application/models/Preference.php +++ b/airtime_mvc/application/models/Preference.php @@ -66,7 +66,7 @@ class Application_Model_Preference } catch (Exception $e){ header('HTTP/1.0 503 Service Unavailable'); - Logging::log("Could not connect to database."); + Logging::log("Could not connect to database: ".$e->getMessage()); exit; } @@ -104,7 +104,7 @@ class Application_Model_Preference } } catch (Exception $e) { header('HTTP/1.0 503 Service Unavailable'); - Logging::log("Could not connect to database."); + Logging::log("Could not connect to database: ".$e->getMessage()); exit; } }