summaryrefslogtreecommitdiffstats
path: root/lib/private/hook.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-04-01 17:12:28 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-04-22 23:40:35 +0200
commit2eced9ea99413388129b3417ac2b9e0161734b9b (patch)
tree8dad854680dce763fa1ab609bb0e1ffb0266ce9c /lib/private/hook.php
parent3fe909305dcaea5eeba343c6730aa2627a133ab8 (diff)
downloadnextcloud-server-2eced9ea99413388129b3417ac2b9e0161734b9b.tar.gz
nextcloud-server-2eced9ea99413388129b3417ac2b9e0161734b9b.zip
throw exception if setup is incomplete
Diffstat (limited to 'lib/private/hook.php')
-rw-r--r--lib/private/hook.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/hook.php b/lib/private/hook.php
index c9ca58f779e..7c7128646a9 100644
--- a/lib/private/hook.php
+++ b/lib/private/hook.php
@@ -80,6 +80,9 @@ class OC_Hook{
OC_Log::write('hook',
'error while running hook (' . $i["class"] . '::' . $i["name"] . '): '.$e->getMessage(),
OC_Log::ERROR);
+ if($e instanceof \OC\ServerNotAvailableException && $signalclass === 'OC_Filesystem' && $signalname === 'setup') {
+ throw $e;
+ }
}
}