mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +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;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception $e)
|
||||
} catch (Exception|Error $e) // Error can occurs on eval() calls
|
||||
{
|
||||
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