diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 094c41b2..341225ba 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -49,10 +49,8 @@ class Handler extends ExceptionHandler */ public function render($request, Exception $e) { - if ($e instanceof HttpException) { - // call i18n middleware manually since http exceptions won't be sent through it - (new Internationalization)->handle($request, function(){}); - } + // call i18n middleware manually since http exceptions won't be sent through it + (new Internationalization)->handle($request, function(){}); if ($e instanceof ModelNotFoundException) { $e = new NotFoundHttpException($e->getMessage(), $e); diff --git a/resources/lang/en/errors.yml b/resources/lang/en/errors.yml index d7099ddc..50d00a5d 100644 --- a/resources/lang/en/errors.yml +++ b/resources/lang/en/errors.yml @@ -7,7 +7,7 @@ general: title: Error occurred brief: - message: Whoops, looks like something went wrong. + message: Whoops, looks like something went wrong. (enable APP_DEBUG to see details) exception: title: Some errors occurred diff --git a/resources/lang/zh_CN/errors.yml b/resources/lang/zh_CN/errors.yml index c5aab3ea..fa069982 100644 --- a/resources/lang/zh_CN/errors.yml +++ b/resources/lang/zh_CN/errors.yml @@ -7,7 +7,7 @@ general: title: 出现错误 brief: - message: 哎呀,你似乎触发了一个错误 + message: 哎呀,你似乎触发了一个错误(开启 APP_DEBUG 以查看详细信息) exception: title: 出现了一些错误