diff options
Diffstat (limited to 'lib/private/db/adapter.php')
-rw-r--r-- | lib/private/db/adapter.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/db/adapter.php b/lib/private/db/adapter.php index 972008776f6..93d69cf4183 100644 --- a/lib/private/db/adapter.php +++ b/lib/private/db/adapter.php @@ -43,6 +43,7 @@ class Adapter { * insert the @input values when they do not exist yet * @param string $table name * @param array $input key->value pair, key has to be sanitized properly + * @throws \OC\HintException * @return int count of inserted rows */ public function insertIfNotExist($table, $input) { @@ -71,7 +72,7 @@ class Adapter { $entry .= 'Offending command was: ' . $query.'<br />'; \OC_Log::write('core', $entry, \OC_Log::FATAL); error_log('DB error: ' . $entry); - \OC_Template::printErrorPage( $entry ); + throw new \OC\HintException($entry); } } } |