summaryrefslogtreecommitdiffstats
path: root/core/ajax
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/ajax
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/ajax')
-rw-r--r--core/ajax/update.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php
index a9ab7316270..6d2dccfac7d 100644
--- a/core/ajax/update.php
+++ b/core/ajax/update.php
@@ -37,6 +37,12 @@ if (OC::checkUpgrade(false)) {
$updater->listen('\OC\Updater', 'appUpgrade', function ($app, $version) use ($eventSource, $l) {
$eventSource->send('success', (string)$l->t('Updated "%s" to %s', array($app, $version)));
});
+ $updater->listen('\OC\Updater', 'repairWarning', function ($description) use ($eventSource, $l) {
+ $eventSource->send('notice', (string)$l->t('Repair warning: ') . $description);
+ });
+ $updater->listen('\OC\Updater', 'repairError', function ($description) use ($eventSource, $l) {
+ $eventSource->send('notice', (string)$l->t('Repair error: ') . $description);
+ });
$updater->listen('\OC\Updater', 'incompatibleAppDisabled', function ($app) use (&$incompatibleApps) {
$incompatibleApps[]= $app;
});