summaryrefslogtreecommitdiffstats
path: root/core/command
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-02-27 12:44:04 +0100
committerVincent Petry <pvince81@owncloud.com>2015-03-16 16:25:29 +0100
commit04809b603795d19c02f7a95c93146186593729b8 (patch)
tree9927e509879f25ea2300c6152e40df0012d258ab /core/command
parent5538c2732276e2d1d4b30faf475b41a1e8e3681d (diff)
downloadnextcloud-server-04809b603795d19c02f7a95c93146186593729b8.tar.gz
nextcloud-server-04809b603795d19c02f7a95c93146186593729b8.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')
-rw-r--r--core/command/maintenance/repair.php3
-rw-r--r--core/command/upgrade.php6
2 files changed, 9 insertions, 0 deletions
diff --git a/core/command/maintenance/repair.php b/core/command/maintenance/repair.php
index bf94b2647ce..bf2cac32ff9 100644
--- a/core/command/maintenance/repair.php
+++ b/core/command/maintenance/repair.php
@@ -46,6 +46,9 @@ class Repair extends Command {
$this->repair->listen('\OC\Repair', 'info', function ($description) use ($output) {
$output->writeln(' - ' . $description);
});
+ $this->repair->listen('\OC\Repair', 'warning', function ($description) use ($output) {
+ $output->writeln(' - WARNING: ' . $description);
+ });
$this->repair->listen('\OC\Repair', 'error', function ($description) use ($output) {
$output->writeln(' - ERROR: ' . $description);
});
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>');
});