]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fix MySQL tests on HHVM
authorJeremy Benoist <jeremy.benoist@gmail.com>
Tue, 12 Apr 2016 10:35:12 +0000 (12:35 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Tue, 12 Apr 2016 10:37:10 +0000 (12:37 +0200)
src/Wallabag/CoreBundle/Command/InstallCommand.php

index e56ee4af012b5b0ac51970ecf7957b9e4f6606ea..813ac720de0c9d53c4a42c35d7bc49a76f2d2d48 100644 (file)
@@ -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;