aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/Console/Application.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/private/Console/Application.php b/lib/private/Console/Application.php
index 900b2c57f41..44f64e09e94 100644
--- a/lib/private/Console/Application.php
+++ b/lib/private/Console/Application.php
@@ -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);