Properly show update exception
This commit is contained in:
parent
90ed32ebc5
commit
ce6045f84b
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue