From fbce2b7156778c4375de21d646ed5c2e44bb23b9 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 14 Nov 2019 17:20:14 +0100 Subject: [PATCH] pass through ServerNotAvailableException on app init Signed-off-by: Arthur Schiwon --- lib/private/legacy/app.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php index 58b617aae4..0dcbadcd08 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