From 2b29a3c012958d1169d98879fc693467f11e1357 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 11 Aug 2018 14:51:53 +0200 Subject: [PATCH] Fix catching throwables --- Localization/L11nManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Localization/L11nManager.php b/Localization/L11nManager.php index 7119c9f3e..0f9d6541d 100644 --- a/Localization/L11nManager.php +++ b/Localization/L11nManager.php @@ -158,7 +158,7 @@ final class L11nManager if (!isset($this->language[$code][$module][$translation])) { return 'ERROR'; } - } catch (\Exception $e) { + } catch (\Throwable $e) { FileLogger::getInstance()->warning(FileLogger::MSG_FULL, [ 'message' => 'Undefined translation for \'' . $code . '/' . $module . '/' . $translation . '\'.', ]);