diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-03-26 19:55:13 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-03-26 19:55:13 +0100 |
commit | c8c722bc6de3a58e10ba42a55a178d3ba9308bae (patch) | |
tree | 6d62aa73cc72596b1bf385cca20e4d8bd9563525 /lib/private/hook.php | |
parent | 3e57e9d3e557100ba0b51f08a3de7a7e8f79f4bd (diff) | |
parent | 6447962f2a3bd845be9ee494f400958371f6e2f9 (diff) | |
download | nextcloud-server-c8c722bc6de3a58e10ba42a55a178d3ba9308bae.tar.gz nextcloud-server-c8c722bc6de3a58e10ba42a55a178d3ba9308bae.zip |
Merge pull request #15129 from owncloud/version-command-bus
expire versions in a background command
Diffstat (limited to 'lib/private/hook.php')
-rw-r--r-- | lib/private/hook.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/hook.php b/lib/private/hook.php index 0ede125d64b..d2a0fa898dd 100644 --- a/lib/private/hook.php +++ b/lib/private/hook.php @@ -26,6 +26,8 @@ * */ class OC_Hook{ + public static $thrownExceptions = []; + static private $registered = array(); /** @@ -98,6 +100,7 @@ class OC_Hook{ try { call_user_func( array( $i["class"], $i["name"] ), $params ); } catch (Exception $e){ + self::$thrownExceptions[] = $e; OC_Log::write('hook', 'error while running hook (' . $i["class"] . '::' . $i["name"] . '): '.$e->getMessage(), OC_Log::ERROR); |