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:
@@ -23,7 +23,7 @@ class RippingCluster_Database {
|
||||
try {
|
||||
$this->dbh = new PDO("mysql:host={$this->hostname};dbname={$this->dbname}", $this->username, $this->password);
|
||||
} catch (PDOException $e) {
|
||||
throw new RippingCluster_Exception_DatabaseConnectionFailed($e->getMessage());
|
||||
throw new RippingCluster_Exception_DatabaseConnectFailed($e->getMessage());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user