Skip to content

Commit da3a766

Browse files
authored
Merge pull request #62996 from nextcloud/backport/62718/stable32
[stable32] fix(console): write app command loading errors to stderr
2 parents a1baaf7 + 88d023c commit da3a766

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)