summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-11-17 09:09:04 +0100
committerGitHub <noreply@github.com>2019-11-17 09:09:04 +0100
commit3530e23a7a2b25b2611b5c373e9aec8e2369f7ed (patch)
tree72b1173701609517893bd6ddd79f14490a1ed000
parentf05e1d174911c2814f8b8e4b415a37038fc22090 (diff)
parenta9c61b4ed7057c0d0b30966504f8a35f08f4d373 (diff)
downloadnextcloud-server-3530e23a7a2b25b2611b5c373e9aec8e2369f7ed.tar.gz
nextcloud-server-3530e23a7a2b25b2611b5c373e9aec8e2369f7ed.zip
Merge pull request #17952 from nextcloud/backport/17942/stable17
[stable17] pass through ServerNotAvailableException on app init
-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 58b617aae45..0dcbadcd083 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