summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-03-20 03:56:38 +0100
committerRobin Appelman <icewind@owncloud.com>2015-03-20 03:56:38 +0100
commitfaa4918355176c975bafcae0113bd648b2d8e7cc (patch)
treea5bfc59fb99f1b5401d823d85d450cd40c129d48
parent2a8c3798a8e43e1215c476815c3f7fa79d5ba91f (diff)
downloadnextcloud-server-faa4918355176c975bafcae0113bd648b2d8e7cc.tar.gz
nextcloud-server-faa4918355176c975bafcae0113bd648b2d8e7cc.zip
be a little more verbose in the exception message when we cant connect to the db
-rw-r--r--lib/private/db/connection.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/db/connection.php b/lib/private/db/connection.php
index 8748f66b369..dd1a9da6747 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());
}
}