aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/db/adapter.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/db/adapter.php')
-rw-r--r--lib/private/db/adapter.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/private/db/adapter.php b/lib/private/db/adapter.php
index 86f867d099f..58b3514b922 100644
--- a/lib/private/db/adapter.php
+++ b/lib/private/db/adapter.php
@@ -71,7 +71,13 @@ class Adapter {
$entry = 'DB Error: "'.$e->getMessage() . '"<br />';
$entry .= 'Offending command was: ' . $query.'<br />';
\OC_Log::write('core', $entry, \OC_Log::FATAL);
- throw new \OC\HintException($entry);
+ $l = \OC::$server->getL10N('lib');
+ throw new \OC\HintException(
+ $l->t('Database Error'),
+ $l->t('Please contact your system administrator.'),
+ 0,
+ $e
+ );
}
}
}