summaryrefslogtreecommitdiffstats
path: root/core/command
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-03-11 13:32:33 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-03-11 13:32:33 +0100
commitad97ceb787ed859e01305d350acce2739d36be53 (patch)
treec2ca0f433007d1d242e8f39152a293bc574720c0 /core/command
parent8154ed4d2c924e134b4d1d6fa8cdd13b311cc75a (diff)
parent1750e7b76d9e625bb94c5599bb6fa713a3441bfc (diff)
downloadnextcloud-server-ad97ceb787ed859e01305d350acce2739d36be53.tar.gz
nextcloud-server-ad97ceb787ed859e01305d350acce2739d36be53.zip
Merge pull request #13513 from owncloud/repair-legacystoragenofatalfail
Do not abort when meeting unfixable legacy storages
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>');
});