From ce6045f84b833c35de5b507c4d15b2a753e476b9 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Wed, 26 Aug 2015 10:56:27 +0200 Subject: Properly show update exception --- core/ajax/update.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/ajax/update.php b/core/ajax/update.php index c25ef1b9084..a693deeb9cf 100644 --- a/core/ajax/update.php +++ b/core/ajax/update.php @@ -89,7 +89,13 @@ if (OC::checkUpgrade(false)) { OC_Config::setValue('maintenance', false); }); - $updater->upgrade(); + try { + $updater->upgrade(); + } catch (\Exception $e) { + $eventSource->send('failure', get_class($e) . ': ' . $e->getMessage()); + $eventSource->close(); + exit(); + } if (!empty($incompatibleApps)) { $eventSource->send('notice', -- cgit v1.2.3