be a little more verbose in the exception message when we cant connect to the db
This commit is contained in:
parent
2a8c3798a8
commit
faa4918355
|
@ -30,7 +30,7 @@ class Connection extends \Doctrine\DBAL\Connection implements IDBConnection {
|
||||||
return parent::connect();
|
return parent::connect();
|
||||||
} catch (DBALException $e) {
|
} catch (DBALException $e) {
|
||||||
// throw a new exception to prevent leaking info from the stacktrace
|
// throw a new exception to prevent leaking info from the stacktrace
|
||||||
throw new DBALException($e->getMessage(), $e->getCode());
|
throw new DBALException('Failed to connect to the database: ' . $e->getMessage(), $e->getCode());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue