Fixes bug with incorrect exception name

Updates the name of the exception thrown when a database connection
cannot be established, to match with the defined exception class name.
This commit is contained in:
2010-09-18 13:13:31 +01:00
parent 136756293b
commit 9cae5046dc

View File

@@ -23,7 +23,7 @@ class RippingCluster_Database {
try { try {
$this->dbh = new PDO("mysql:host={$this->hostname};dbname={$this->dbname}", $this->username, $this->password); $this->dbh = new PDO("mysql:host={$this->hostname};dbname={$this->dbname}", $this->username, $this->password);
} catch (PDOException $e) { } catch (PDOException $e) {
throw new RippingCluster_Exception_DatabaseConnectionFailed($e->getMessage()); throw new RippingCluster_Exception_DatabaseConnectFailed($e->getMessage());
} }
} }