From d7fb3c68023b372386cc6ebd9fe215c3e7845839 Mon Sep 17 00:00:00 2001 From: Baptist BENOIST Date: Tue, 3 May 2016 00:39:23 +0200 Subject: [PATCH] Unhide Zend_Exception in UtilityComponent::run_sql_from_file --- core/controllers/components/UtilityComponent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/controllers/components/UtilityComponent.php b/core/controllers/components/UtilityComponent.php index df006af51..c6f0034f1 100644 --- a/core/controllers/components/UtilityComponent.php +++ b/core/controllers/components/UtilityComponent.php @@ -390,7 +390,7 @@ public static function run_sql_from_file($db, $sqlfile) $db->query($query); } catch (Zend_Exception $exception) { if (trim($query) != '') { - throw new Zend_Exception('Unable to connect.'); + throw $exception; } } }