add reason why Propel connection failed

This commit is contained in:
Martin Konecny 2012-06-08 12:06:54 -04:00
parent fdb7d55ac1
commit 0416c05f9c
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}