aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Updater.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-11-09 09:10:32 +0100
committerJoas Schilling <coding@schilljs.com>2016-11-09 09:10:32 +0100
commit224dfaf1e60ce9c6493ffb0449bdfcca5f31ec29 (patch)
treedd78aa4f5460d10c7ee20faeae4c39386fb20263 /lib/private/Updater.php
parent05cf1dab4ca7d69a837c2c9e890f078cef76c744 (diff)
downloadnextcloud-server-224dfaf1e60ce9c6493ffb0449bdfcca5f31ec29.tar.gz
nextcloud-server-224dfaf1e60ce9c6493ffb0449bdfcca5f31ec29.zip
Use a better error message and point the users to the support channels
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Updater.php')
-rw-r--r--lib/private/Updater.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Updater.php b/lib/private/Updater.php
index e7f7a944902..2fed67988b8 100644
--- a/lib/private/Updater.php
+++ b/lib/private/Updater.php
@@ -121,6 +121,10 @@ class Updater extends BasicEmitter {
$success = true;
try {
$this->doUpgrade($currentVersion, $installedVersion);
+ } catch (HintException $exception) {
+ $this->log->logException($exception, ['app' => 'core']);
+ $this->emit('\OC\Updater', 'failure', array($exception->getMessage() . ': ' .$exception->getHint()));
+ $success = false;
} catch (\Exception $exception) {
$this->log->logException($exception, ['app' => 'core']);
$this->emit('\OC\Updater', 'failure', array(get_class($exception) . ': ' .$exception->getMessage()));