add notice of enabling APP_DEBUG when error occured
This commit is contained in:
parent
7f966ce80d
commit
994b827643
|
|
@ -49,10 +49,8 @@ class Handler extends ExceptionHandler
|
||||||
*/
|
*/
|
||||||
public function render($request, Exception $e)
|
public function render($request, Exception $e)
|
||||||
{
|
{
|
||||||
if ($e instanceof HttpException) {
|
// call i18n middleware manually since http exceptions won't be sent through it
|
||||||
// call i18n middleware manually since http exceptions won't be sent through it
|
(new Internationalization)->handle($request, function(){});
|
||||||
(new Internationalization)->handle($request, function(){});
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($e instanceof ModelNotFoundException) {
|
if ($e instanceof ModelNotFoundException) {
|
||||||
$e = new NotFoundHttpException($e->getMessage(), $e);
|
$e = new NotFoundHttpException($e->getMessage(), $e);
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ general:
|
||||||
title: Error occurred
|
title: Error occurred
|
||||||
|
|
||||||
brief:
|
brief:
|
||||||
message: Whoops, looks like something went wrong.
|
message: Whoops, looks like something went wrong. (enable APP_DEBUG to see details)
|
||||||
|
|
||||||
exception:
|
exception:
|
||||||
title: Some errors occurred
|
title: Some errors occurred
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ general:
|
||||||
title: 出现错误
|
title: 出现错误
|
||||||
|
|
||||||
brief:
|
brief:
|
||||||
message: 哎呀,你似乎触发了一个错误
|
message: 哎呀,你似乎触发了一个错误(开启 APP_DEBUG 以查看详细信息)
|
||||||
|
|
||||||
exception:
|
exception:
|
||||||
title: 出现了一些错误
|
title: 出现了一些错误
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user