mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 00:28:47 +02:00
Setup : catch also fatal error during conversion
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user