diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-06-23 14:45:53 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-07-06 10:58:22 +0200 |
commit | fba6ac505004c5d6a3fad5079bde2964302c0c9f (patch) | |
tree | 7ce3daff34b168e3d33ca75f869c065eacd8f342 | |
parent | 917002f3ecc91b1d06a4ca126bbbf392cee1285f (diff) | |
download | nextcloud-server-fba6ac505004c5d6a3fad5079bde2964302c0c9f.tar.gz nextcloud-server-fba6ac505004c5d6a3fad5079bde2964302c0c9f.zip |
[updater] mark failure in red
-rw-r--r-- | core/command/upgrade.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/command/upgrade.php b/core/command/upgrade.php index 456d9248218..af3a02178f1 100644 --- a/core/command/upgrade.php +++ b/core/command/upgrade.php @@ -92,7 +92,8 @@ class Upgrade extends Command { function ($success) use($output, $updateStepEnabled, $self) { $mode = $updateStepEnabled ? 'Update' : 'Update simulation'; $status = $success ? 'successful' : 'failed' ; - $message = "<info>$mode $status</info>"; + $type = $success ? 'info' : 'error'; + $message = "<$type>$mode $status</$type>"; $output->writeln($message); }); $updater->listen('\OC\Updater', 'dbUpgrade', function () use($output) { |