This commit is contained in:
Jeremy Benoist 2016-09-03 11:45:59 +02:00
parent f62c3faf88
commit 5070644a12
No known key found for this signature in database
GPG Key ID: BCA73962457ACC3C

View File

@ -96,7 +96,7 @@ class InstallCommand extends ContainerAwareCommand
try { try {
$this->getContainer()->get('doctrine')->getManager()->getConnection()->connect(); $this->getContainer()->get('doctrine')->getManager()->getConnection()->connect();
} catch (\Exception $e) { } catch (\Exception $e) {
if (false === strpos($e->getMessage(), "Unknown database")) { if (false === strpos($e->getMessage(), 'Unknown database')) {
$fulfilled = false; $fulfilled = false;
$status = '<error>ERROR!</error>'; $status = '<error>ERROR!</error>';
$help = 'Can\'t connect to the database: '.$e->getMessage(); $help = 'Can\'t connect to the database: '.$e->getMessage();