]> source.dussan.org Git - nextcloud-server.git/commitdiff
be a little more verbose in the exception message when we cant connect to the db
authorRobin Appelman <icewind@owncloud.com>
Fri, 20 Mar 2015 02:56:38 +0000 (03:56 +0100)
committerRobin Appelman <icewind@owncloud.com>
Fri, 20 Mar 2015 02:56:38 +0000 (03:56 +0100)
lib/private/db/connection.php

index 8748f66b369de7656063e24c8ea9c71932a2e41a..dd1a9da674758a6f8f4591060e15680534b66918 100644 (file)
@@ -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());
                }
        }