From 22bc37cb82368fba912a9e5a5ef0e87017d04b1e Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 27 Feb 2015 12:44:04 +0100 Subject: 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. --- core/ajax/update.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/ajax') diff --git a/core/ajax/update.php b/core/ajax/update.php index b2ca0e3c8ec..6a274b76309 100644 --- a/core/ajax/update.php +++ b/core/ajax/update.php @@ -35,6 +35,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; }); -- cgit v1.2.3