Properly show update exception

This commit is contained in:
Vincent Petry 2015-08-26 10:56:27 +02:00
parent 90ed32ebc5
commit ce6045f84b
1 changed files with 7 additions and 1 deletions

View File

@ -89,7 +89,13 @@ if (OC::checkUpgrade(false)) {
OC_Config::setValue('maintenance', false);
});
try {
$updater->upgrade();
} catch (\Exception $e) {
$eventSource->send('failure', get_class($e) . ': ' . $e->getMessage());
$eventSource->close();
exit();
}
if (!empty($incompatibleApps)) {
$eventSource->send('notice',