From: Jeremy Benoist Date: Tue, 12 Apr 2016 10:35:12 +0000 (+0200) Subject: Fix MySQL tests on HHVM X-Git-Tag: 2.0.2~12^2~1 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=443cff98405adfa7f27b5181f4aaa29bd7d050dc;p=github%2Fwallabag%2Fwallabag.git Fix MySQL tests on HHVM --- diff --git a/src/Wallabag/CoreBundle/Command/InstallCommand.php b/src/Wallabag/CoreBundle/Command/InstallCommand.php index e56ee4af..813ac720 100644 --- a/src/Wallabag/CoreBundle/Command/InstallCommand.php +++ b/src/Wallabag/CoreBundle/Command/InstallCommand.php @@ -468,7 +468,7 @@ class InstallCommand extends ContainerAwareCommand try { return in_array($databaseName, $schemaManager->listDatabases()); - } catch (\Doctrine\DBAL\Exception\ConnectionException $e) { + } catch (\Doctrine\DBAL\Exception\DriverException $e) { // it means we weren't able to get database list, assume the database doesn't exist return false;