Skip to content

Commit 1f7c487

Browse files
Merge pull request #62997 from nextcloud/backport/62718/stable33
[stable33] fix(console): write app command loading errors to stderr
2 parents 17c8599 + 49743f2 commit 1f7c487

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/Console/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function loadCommands(
100100
try {
101101
$this->loadCommandsFromInfoXml($info['commands']);
102102
} catch (\Throwable $e) {
103-
$output->writeln('<error>' . $e->getMessage() . '</error>');
103+
$output->getErrorOutput()->writeln('<error>' . $e->getMessage() . '</error>');
104104
$this->logger->error($e->getMessage(), [
105105
'exception' => $e,
106106
]);

0 commit comments

Comments
 (0)