summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-03-20 10:06:06 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-03-20 10:06:06 +0100
commitcce303ff5ca830990e8565f81a4c12dd053adf03 (patch)
tree2532efb32467db87c0b4b0257ec369a3ac94e5f3 /lib/private
parent8e536c67623fb340578549ed6a4a3588797d5709 (diff)
parentfaa4918355176c975bafcae0113bd648b2d8e7cc (diff)
downloadnextcloud-server-cce303ff5ca830990e8565f81a4c12dd053adf03.tar.gz
nextcloud-server-cce303ff5ca830990e8565f81a4c12dd053adf03.zip
Merge pull request #15047 from owncloud/connect-failed-exception-message
be a little more verbose in the exception message when we cant connect to...
Diffstat (limited to 'lib/private')
-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());
}
}