Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/Updater.php')
-rw-r--r--core/Updater.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/Updater.php b/core/Updater.php
index 00cba745b2..8a67c0bd00 100644
--- a/core/Updater.php
+++ b/core/Updater.php
@@ -10,6 +10,7 @@ namespace Piwik;
use Piwik\Columns\Updater as ColumnUpdater;
use Piwik\Container\StaticContainer;
+use Piwik\Exception\MissingFilePermissionException;
use Piwik\Updater\UpdateObserver;
use Zend_Db_Exception;
@@ -257,8 +258,8 @@ class Updater
$this->markComponentSuccessfullyUpdated($componentName, $fileVersion);
} catch (UpdaterErrorException $e) {
$this->executeListenerHook('onError', array($componentName, $fileVersion, $e));
-
throw $e;
+
} catch (\Exception $e) {
$warningMessages[] = $e->getMessage();
@@ -581,7 +582,9 @@ class Updater
// make sure to check for them here
if ($e instanceof Zend_Db_Exception) {
throw new UpdaterErrorException($e->getMessage(), $e->getCode(), $e);
- } else {
+ } else if ($e instanceof MissingFilePermissionException) {
+ throw new UpdaterErrorException($e->getMessage(), $e->getCode(), $e);
+ }{
throw $e;
}
}