]> source.dussan.org Git - nextcloud-server.git/commitdiff
Bubble up hint exceptions in hooks, so the user can see the hint
authorJörn Friedrich Dreyer <jfd@butonic.de>
Fri, 13 Nov 2015 16:14:08 +0000 (17:14 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Wed, 13 Jan 2016 14:52:18 +0000 (15:52 +0100)
lib/private/hook.php

index 7bd1e991923dfaf888196b9b96b9a516cd279036..d722cf8a5bae791a87503a3939db3c8c919c51dc 100644 (file)
@@ -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);