From 9cae5046dc7a519a7a06d7068f524b8e56b6e898 Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Sat, 18 Sep 2010 13:13:31 +0100 Subject: [PATCH] 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. --- lib/RippingCluster/Database.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/RippingCluster/Database.class.php b/lib/RippingCluster/Database.class.php index 9ff1b14..9ab0c76 100644 --- a/lib/RippingCluster/Database.class.php +++ b/lib/RippingCluster/Database.class.php @@ -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()); } }