From cbe995af318e9b942b15d106a92af54cca978750 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Fri, 13 Nov 2015 17:14:08 +0100 Subject: [PATCH] Bubble up hint exceptions in hooks, so the user can see the hint --- lib/private/hook.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/private/hook.php b/lib/private/hook.php index 7bd1e99192..d722cf8a5b 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);