mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #15047 from owncloud/connect-failed-exception-message
be a little more verbose in the exception message when we cant connect to...
This commit is contained in:
commit
cce303ff5c
1 changed files with 1 additions and 1 deletions
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue