Skip to content

Commit

Permalink
Merge pull request #27970 from owncloud/enableapp-throwexception
Browse files Browse the repository at this point in the history
Throw exception after enabling app, for additional info
  • Loading branch information
Vincent Petry authored May 22, 2017
2 parents cb6f4a2 + aaf5ecc commit c9e7148
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/private/legacy/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}
}

Expand Down

0 comments on commit c9e7148

Please sign in to comment.