Bubble up hint exceptions in hooks, so the user can see the hint
This commit is contained in:
parent
471c77305f
commit
cbe995af31
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue