diff --git a/application/Espo/Core/Upgrades/Actions/Base.php b/application/Espo/Core/Upgrades/Actions/Base.php index 1bedd10bc6..c8069ee5f7 100644 --- a/application/Espo/Core/Upgrades/Actions/Base.php +++ b/application/Espo/Core/Upgrades/Actions/Base.php @@ -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().'.'); }