mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°7343 Catch ParseError when loading dict files in setup (#615)
This commit is contained in:
@@ -932,10 +932,12 @@ class ModelFactory
|
|||||||
$this->aDictKeys[$sLanguageCode][$sCode] = $oXmlEntry;
|
$this->aDictKeys[$sLanguageCode][$sCode] = $oXmlEntry;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} catch (Exception|Error $e) // Error can occurs on eval() calls
|
||||||
catch (Exception $e)
|
|
||||||
{
|
{
|
||||||
throw new Exception('Failed to load dictionary file "'.$sPHPFile.'", reason: '.$e->getMessage());
|
throw new DictException('Failed to load dictionary file "' . $sPHPFile . '"', [
|
||||||
|
'exception_class' => get_class($e),
|
||||||
|
'exception_msg' => $e->getMessage(),
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user