Merge remote-tracking branch 'origin/support/3.0' into support/3.1

This commit is contained in:
Pierre Goiffon
2024-03-13 09:27:39 +01:00
3 changed files with 27 additions and 7 deletions

View File

@@ -982,10 +982,13 @@ class ModelFactory
$this->aDictKeys[$sLanguageCode][$sCode] = $oXmlEntry;
}
}
}
catch (Exception $e) {
throw new Exception('Failed to load dictionary file "'.$sPHPFile.'", reason: '.$e->getMessage());
}
} catch (Exception|Error $e) // Error can occurs on eval() calls
{
throw new DictException('Failed to load dictionary file "' . $sPHPFile . '"', [
'exception_class' => get_class($e),
'exception_msg' => $e->getMessage(),
]);
}
}
catch (Exception $e) {