mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-13 23:28:39 +00:00
Fix catching throwables
This commit is contained in:
parent
356027981f
commit
2b29a3c012
|
|
@ -158,7 +158,7 @@ final class L11nManager
|
||||||
if (!isset($this->language[$code][$module][$translation])) {
|
if (!isset($this->language[$code][$module][$translation])) {
|
||||||
return 'ERROR';
|
return 'ERROR';
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Throwable $e) {
|
||||||
FileLogger::getInstance()->warning(FileLogger::MSG_FULL, [
|
FileLogger::getInstance()->warning(FileLogger::MSG_FULL, [
|
||||||
'message' => 'Undefined translation for \'' . $code . '/' . $module . '/' . $translation . '\'.',
|
'message' => 'Undefined translation for \'' . $code . '/' . $module . '/' . $translation . '\'.',
|
||||||
]);
|
]);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user