summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2019-11-14 17:20:14 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2019-11-14 17:20:14 +0100
commitaf6c788efc81d7bf4d3aec6c267e545dcf4afad6 (patch)
treecc52c6d8613e232322aed9ff9f61ff8fd7d79818 /lib/private/legacy
parent224073ea7ba5fa3c2ae7604aa593f0e01f4b4137 (diff)
downloadnextcloud-server-af6c788efc81d7bf4d3aec6c267e545dcf4afad6.tar.gz
nextcloud-server-af6c788efc81d7bf4d3aec6c267e545dcf4afad6.zip
pass through ServerNotAvailableException on app init
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private/legacy')
-rw-r--r--lib/private/legacy/app.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php
index 9e47f9064d9..146262c3f95 100644
--- a/lib/private/legacy/app.php
+++ b/lib/private/legacy/app.php
@@ -55,6 +55,7 @@ use OC\App\Platform;
use OC\DB\MigrationService;
use OC\Installer;
use OC\Repair;
+use OC\ServerNotAvailableException;
use OCP\App\ManagerEvent;
use OCP\ILogger;
@@ -153,6 +154,9 @@ class OC_App {
try {
self::requireAppFile($app);
} catch (Throwable $ex) {
+ if($ex instanceof ServerNotAvailableException) {
+ throw $ex;
+ }
\OC::$server->getLogger()->logException($ex);
if (!\OC::$server->getAppManager()->isShipped($app)) {
// Only disable apps which are not shipped