From faa4918355176c975bafcae0113bd648b2d8e7cc Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 20 Mar 2015 03:56:38 +0100 Subject: [PATCH] be a little more verbose in the exception message when we cant connect to the db --- lib/private/db/connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/db/connection.php b/lib/private/db/connection.php index 8748f66b36..dd1a9da674 100644 --- a/lib/private/db/connection.php +++ b/lib/private/db/connection.php @@ -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()); } }