Commit faa49183 authored by Robin Appelman's avatar Robin Appelman
Browse files

be a little more verbose in the exception message when we cant connect to the db

parent 2a8c3798
......@@ -30,7 +30,7 @@ class Connection extends \Doctrine\DBAL\Connection implements IDBConnection {
return parent::connect();
} catch (DBALException $e) {
// 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());
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment