summaryrefslogtreecommitdiffstats
path: root/lib/app.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/app.php')
-rw-r--r--lib/app.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/app.php b/lib/app.php
index baacf508d8e..115b7d60f5e 100644
--- a/lib/app.php
+++ b/lib/app.php
@@ -839,9 +839,8 @@ class OC_App{
OC_Hook::emit('update', 'success', 'Updated '.$info['name'].' app');
}
catch (Exception $e) {
- echo 'Failed to upgrade "'.$app.'". Exception="'.$e->getMessage().'"';
OC_Hook::emit('update', 'failure', 'Failed to update '.$info['name'].' app: '.$e->getMessage());
- die;
+ throw new RuntimeException('Failed to upgrade "'.$app.'". Exception="'.$e->getMessage().'"');
}
OC_Appconfig::setValue($app, 'installed_version', OC_App::getAppVersion($app));
}