mirror of
https://github.com/nextcloud/server.git
synced 2026-02-19 02:38:40 -05:00
make failure to load app commands non-fatal
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
50fffa8d95
commit
860caa0849
1 changed files with 8 additions and 1 deletions
|
|
@ -121,7 +121,14 @@ class Application {
|
|||
// load commands using info.xml
|
||||
$info = $appManager->getAppInfo($app);
|
||||
if (isset($info['commands'])) {
|
||||
$this->loadCommandsFromInfoXml($info['commands']);
|
||||
try {
|
||||
$this->loadCommandsFromInfoXml($info['commands']);
|
||||
} catch (\Throwable $e) {
|
||||
$output->writeln("<error>" . $e->getMessage() . "</error>");
|
||||
$this->logger->error($e->getMessage(), [
|
||||
'exception' => $e,
|
||||
]);
|
||||
}
|
||||
}
|
||||
// load from register_command.php
|
||||
\OC_App::registerAutoloading($app, $appPath);
|
||||
|
|
|
|||
Loading…
Reference in a new issue