summaryrefslogtreecommitdiffstats
path: root/lib/private/db.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-04-18 17:02:39 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-04-18 17:02:39 +0200
commite837927ad573d1c8fbcecc1759859d6a3465c691 (patch)
treedf9a2c18f8b1f57e2b8e1f95a3c777bda8ab7800 /lib/private/db.php
parent47ecfd98a39e596c8f47dd9a6b14ece4e651f685 (diff)
downloadnextcloud-server-e837927ad573d1c8fbcecc1759859d6a3465c691.tar.gz
nextcloud-server-e837927ad573d1c8fbcecc1759859d6a3465c691.zip
fix followup issues with unneeded parameters
Diffstat (limited to 'lib/private/db.php')
-rw-r--r--lib/private/db.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/db.php b/lib/private/db.php
index 673ad894b66..98df1c73714 100644
--- a/lib/private/db.php
+++ b/lib/private/db.php
@@ -290,11 +290,11 @@ class OC_DB {
public static function raiseExceptionOnError($result, $message = null) {
if(self::isError($result)) {
if ($message === null) {
- $message = self::getErrorMessage($result);
+ $message = self::getErrorMessage();
} else {
- $message .= ', Root cause:' . self::getErrorMessage($result);
+ $message .= ', Root cause:' . self::getErrorMessage();
}
- throw new \OC\DatabaseException($message, self::getErrorCode($result));
+ throw new \OC\DatabaseException($message, self::getErrorCode());
}
}