Upgrade fixes

This commit is contained in:
Taras Machyshyn
2019-12-06 12:38:28 +02:00
parent fdf08624cb
commit c5e41faa0f

View File

@@ -245,7 +245,7 @@ abstract class Base
$isInRange = false;
try {
$isInRange = Semver::satisfies($currentVersion, $version);
} catch (\Exception $e) {
} catch (\Throwable $e) {
$GLOBALS['log']->error('SemVer: Version identification error: '.$e->getMessage().'.');
}
@@ -313,7 +313,7 @@ abstract class Base
try {
$script->run($this->getContainer(), $this->scriptParams);
} catch (\Exception $e) {
} catch (\Throwable $e) {
$this->throwErrorAndRemovePackage($e->getMessage());
}
}
@@ -494,7 +494,7 @@ abstract class Base
{
try {
$res = $this->getFileManager()->copy($sourcePath, $destPath, $recursively, $fileList, $copyOnlyFiles);
} catch (\Exception $e) {
} catch (\Throwable $e) {
$this->throwErrorAndRemovePackage($e->getMessage());
}
@@ -706,7 +706,7 @@ abstract class Base
{
try {
return $this->getContainer()->get('dataManager')->rebuild();
} catch (\Exception $e) {
} catch (\Throwable $e) {
$GLOBALS['log']->error('Database rebuild failure, details: '.$e->getMessage().'.');
}