summaryrefslogtreecommitdiffstats
path: root/lib/private/hook.php
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2015-11-13 17:14:08 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-01-13 15:52:18 +0100
commitcbe995af318e9b942b15d106a92af54cca978750 (patch)
tree4b7a9fe8e45a9b73fe06913e2284f5e201b8dd95 /lib/private/hook.php
parent471c77305f0b237862e87830104d9edead62190c (diff)
downloadnextcloud-server-cbe995af318e9b942b15d106a92af54cca978750.tar.gz
nextcloud-server-cbe995af318e9b942b15d106a92af54cca978750.zip
Bubble up hint exceptions in hooks, so the user can see the hint
Diffstat (limited to 'lib/private/hook.php')
-rw-r--r--lib/private/hook.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/hook.php b/lib/private/hook.php
index 7bd1e991923..d722cf8a5ba 100644
--- a/lib/private/hook.php
+++ b/lib/private/hook.php
@@ -112,6 +112,9 @@ class OC_Hook{
if (empty($message)) {
$message = get_class($e);
}
+ if($e instanceof \OC\HintException) {
+ throw $e;
+ }
\OCP\Util::writeLog('hook',
'error while running hook (' . $class . '::' . $i["name"] . '): ' . $message,
\OCP\Util::ERROR);