diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-02-27 12:44:04 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-02-27 12:44:04 +0100 |
commit | 22bc37cb82368fba912a9e5a5ef0e87017d04b1e (patch) | |
tree | 42a7a13fff923c1df9703300ee830110c40656c4 /core/command/upgrade.php | |
parent | e6abe96374d31ba4c44103b822ee826ea6e5a927 (diff) | |
download | nextcloud-server-22bc37cb82368fba912a9e5a5ef0e87017d04b1e.tar.gz nextcloud-server-22bc37cb82368fba912a9e5a5ef0e87017d04b1e.zip |
Properly forward repair errors and warnings
This makes repair errors and warnings visible for the user when
upgrading on the command line or in the web UI.
Diffstat (limited to 'core/command/upgrade.php')
-rw-r--r-- | core/command/upgrade.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/command/upgrade.php b/core/command/upgrade.php index e5402796136..8c3fbacb3f4 100644 --- a/core/command/upgrade.php +++ b/core/command/upgrade.php @@ -113,6 +113,12 @@ class Upgrade extends Command { $updater->listen('\OC\Updater', 'thirdPartyAppDisabled', function ($app) use($output) { $output->writeln('<info>Disabled 3rd-party app: ' . $app . '</info>'); }); + $updater->listen('\OC\Updater', 'repairWarning', function ($app) use($output) { + $output->writeln('<error>Repair warning: ' . $app . '</error>'); + }); + $updater->listen('\OC\Updater', 'repairError', function ($app) use($output) { + $output->writeln('<error>Repair error: ' . $app . '</error>'); + }); $updater->listen('\OC\Updater', 'appUpgradeCheck', function () use ($output) { $output->writeln('<info>Checked database schema update for apps</info>'); }); |