diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2021-08-18 18:52:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-18 18:52:02 +0200 |
commit | 3ac9b565dbd9e32b7075322bf40a14abcca813c4 (patch) | |
tree | 1c71a55470039ff7fe148a2e04c3a8100541de44 /lib | |
parent | bccdd32d4fe72024cfc0ccc8fe0d522e73a2ca01 (diff) | |
parent | b8b73fa9e43a44daf836275c12a546bf310a71f3 (diff) | |
download | nextcloud-server-3ac9b565dbd9e32b7075322bf40a14abcca813c4.tar.gz nextcloud-server-3ac9b565dbd9e32b7075322bf40a14abcca813c4.zip |
Merge pull request #28493 from nextcloud/bugfix/occ-error-output
Write upgrade/not-installed notices to stderr
Diffstat (limited to 'lib')
-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"); } } |