From fba6ac505004c5d6a3fad5079bde2964302c0c9f Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 23 Jun 2015 14:45:53 +0200 Subject: [updater] mark failure in red --- core/command/upgrade.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 = "$mode $status"; + $type = $success ? 'info' : 'error'; + $message = "<$type>$mode $status"; $output->writeln($message); }); $updater->listen('\OC\Updater', 'dbUpgrade', function () use($output) { -- cgit v1.2.3