diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-07-24 16:14:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-24 16:14:53 +0200 |
commit | 5dc480a38c3755330cda99915a54f72d46df4885 (patch) | |
tree | e525b543238af7d2ac1565f348983ed7cf45481e /lib/private/legacy/db.php | |
parent | e785b849c71ebc980c5dc17f9c4c470fe0a7404a (diff) | |
parent | b8ed028870c36a5471df264d64dcdee6074096c9 (diff) | |
download | nextcloud-server-5dc480a38c3755330cda99915a54f72d46df4885.tar.gz nextcloud-server-5dc480a38c3755330cda99915a54f72d46df4885.zip |
Merge pull request #5857 from nextcloud/database-exception-cleanup
Remove unneeded parameter in DatabaseException
Diffstat (limited to 'lib/private/legacy/db.php')
-rw-r--r-- | lib/private/legacy/db.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/legacy/db.php b/lib/private/legacy/db.php index 415701d4024..9e4d619d953 100644 --- a/lib/private/legacy/db.php +++ b/lib/private/legacy/db.php @@ -65,7 +65,7 @@ class OC_DB { try { $result =$connection->prepare($query, $limit, $offset); } catch (\Doctrine\DBAL\DBALException $e) { - throw new \OC\DatabaseException($e->getMessage(), $query); + throw new \OC\DatabaseException($e->getMessage()); } // differentiate between query and manipulation $result = new OC_DB_StatementWrapper($result, $isManipulation); @@ -214,7 +214,7 @@ class OC_DB { } else { $message .= ', Root cause:' . self::getErrorMessage(); } - throw new \OC\DatabaseException($message, \OC::$server->getDatabaseConnection()->errorCode()); + throw new \OC\DatabaseException($message); } } |