aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-06-23 14:45:53 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-06-23 14:45:53 +0200
commitc86e129ce90c65de92172676b3798a8b48589b58 (patch)
tree3b96089aafb02a057e1862f36ab865d4b7e069dc /core
parentfe42553e8a034ca246698144b03dc4570fe0b826 (diff)
downloadnextcloud-server-c86e129ce90c65de92172676b3798a8b48589b58.tar.gz
nextcloud-server-c86e129ce90c65de92172676b3798a8b48589b58.zip
[updater] keep maintenance active on failure and mark failure in red
Diffstat (limited to 'core')
-rw-r--r--core/command/upgrade.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/command/upgrade.php b/core/command/upgrade.php
index 6791d386b27..6d87f0a9891 100644
--- a/core/command/upgrade.php
+++ b/core/command/upgrade.php
@@ -130,7 +130,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) {