diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-08-18 14:31:49 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2021-08-18 14:31:49 +0200 |
commit | b8b73fa9e43a44daf836275c12a546bf310a71f3 (patch) | |
tree | 462f780b01f4d9e36e4a6f71392236e5a333a4f6 /lib/private/Console | |
parent | 7ab39effd3d8d1ead9fac5bd475da024826b07c5 (diff) | |
download | nextcloud-server-b8b73fa9e43a44daf836275c12a546bf310a71f3.tar.gz nextcloud-server-b8b73fa9e43a44daf836275c12a546bf310a71f3.zip |
Write upgrade/not-installed notices to stderr
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Console')
-rw-r--r-- | lib/private/Console/Application.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/private/Console/Application.php b/lib/private/Console/Application.php index 11efe7d8ccf..12d54b48fa9 100644 --- a/lib/private/Console/Application.php +++ b/lib/private/Console/Application.php @@ -142,12 +142,14 @@ class Application { } } } elseif ($input->getArgument('command') !== '_completion' && $input->getArgument('command') !== 'maintenance:install') { - $output->writeln("Nextcloud is not installed - only a limited number of commands are available"); + $errorOutput = $output->getErrorOutput(); + $errorOutput->writeln("Nextcloud is not installed - only a limited number of commands are available"); } } catch (NeedsUpdateException $e) { if ($input->getArgument('command') !== '_completion') { - $output->writeln("Nextcloud or one of the apps require upgrade - only a limited number of commands are available"); - $output->writeln("You may use your browser or the occ upgrade command to do the upgrade"); + $errorOutput = $output->getErrorOutput(); + $errorOutput->writeln("Nextcloud or one of the apps require upgrade - only a limited number of commands are available"); + $errorOutput->writeln("You may use your browser or the occ upgrade command to do the upgrade"); } } |