From aaf5eccfb5444d7bd55c5366df098f66e0723008 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Mon, 22 May 2017 10:49:51 +0200 Subject: [PATCH] Throw exception after enabling app, for additional info --- lib/private/legacy/app.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php index f499044502bd..e065dd257305 100644 --- a/lib/private/legacy/app.php +++ b/lib/private/legacy/app.php @@ -49,6 +49,7 @@ use OC\App\Platform; use OC\Installer; use OC\Repair; +use OC\HintException; /** * This class manages the apps. It allows them to register and integrate in the @@ -214,8 +215,10 @@ private static function requireAppFile($app) { \OC::$server->getLogger()->logException($ex); $blacklist = \OC::$server->getAppManager()->getAlwaysEnabledApps(); if (!in_array($app, $blacklist)) { + \OC::$server->getLogger()->warning('Could not load app "' . $app . '", it will be disabled', array('app' => 'core')); self::disable($app); } + throw $ex; } }