Bubble up hint exceptions in hooks, so the user can see the hint

This commit is contained in:
Jörn Friedrich Dreyer 2015-11-13 17:14:08 +01:00 committed by Thomas Müller
parent 471c77305f
commit cbe995af31

View 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);