Setup : catch also fatal error during conversion

This commit is contained in:
Pierre Goiffon
2022-11-18 15:40:38 +01:00
parent f60331e0f9
commit ecfae75e10

View File

@@ -292,7 +292,15 @@ class iTopDesignFormat
}
$this->LogInfo("Converting from $sVersion to $sTargetVersion");
$this->DoConvert($sVersion, $sTargetVersion, $oFactory);
try {
$this->DoConvert($sVersion, $sTargetVersion, $oFactory);
}
catch (Exception|Error $e) {
$this->LogError($e->getMessage());
return false;
}
if ($this->bStatus) {
/** @noinspection PhpUnhandledExceptionInspection already called earlier so should not crash */
$oITopDesignNode = $this->GetITopDesignNode();