diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-31 13:41:57 +0300 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-04-04 13:34:18 +0300 |
commit | 15339efd60ebcb4b140fc0e27f66ed9541f9d77f (patch) | |
tree | 1d0398ca65d5008e96e4c9378838ce374654e438 /core | |
parent | 1bf4c75e8bfd32160ee7316c492ddc436f673f37 (diff) |
Limit the message to the console to the first 30 characters in order to not break the progress bar
Diffstat (limited to 'core')
-rw-r--r-- | core/command/upgrade.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/command/upgrade.php b/core/command/upgrade.php index fbabf67a16a..c2de699d862 100644 --- a/core/command/upgrade.php +++ b/core/command/upgrade.php @@ -146,7 +146,11 @@ class Upgrade extends Command { $output->writeln(''); $progress->start($event[1]); } - $progress->setMessage($event->getSubject()); + $message = $event->getSubject(); + if (strlen($message) > 30) { + $message = substr($message, 0, 27) . '...'; + } + $progress->setMessage($message); $progress->setProgress($event[0]); $progress->display(); if ($event[0] === $event[1]) { |