aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/db/adaptersqlite.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-11-14 15:48:55 +0100
committerArthur Schiwon <blizzz@owncloud.com>2014-11-14 15:48:55 +0100
commit7ed678b04db6dde338f90fbd00d828acee4c9c99 (patch)
treeb59377fe61f19eb8e7a8cc2994357c98458eaabd /lib/private/db/adaptersqlite.php
parent0f3c5d8541dcb41eebd00f22864a0a646c11124f (diff)
downloadnextcloud-server-7ed678b04db6dde338f90fbd00d828acee4c9c99.tar.gz
nextcloud-server-7ed678b04db6dde338f90fbd00d828acee4c9c99.zip
eliminate OC_Template::printErrorPage in database classes, fixes #12182
Diffstat (limited to 'lib/private/db/adaptersqlite.php')
-rw-r--r--lib/private/db/adaptersqlite.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/db/adaptersqlite.php b/lib/private/db/adaptersqlite.php
index 3471fcf4042..fa0e7eb6237 100644
--- a/lib/private/db/adaptersqlite.php
+++ b/lib/private/db/adaptersqlite.php
@@ -42,7 +42,7 @@ class AdapterSqlite extends 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);
}
if ($stmt->fetchColumn() === '0') {
@@ -61,7 +61,7 @@ class AdapterSqlite extends 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);
}
return $result;