From 91411f5563855959c63d4e5d1d1d00b04a8604c6 Mon Sep 17 00:00:00 2001 From: printempw Date: Sun, 4 Sep 2016 15:16:42 +0800 Subject: [PATCH] fix custom message of HttpException --- resources/views/errors/403.tpl | 2 +- resources/views/errors/404.tpl | 2 +- resources/views/errors/503.tpl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/views/errors/403.tpl b/resources/views/errors/403.tpl index 0bd8fba8..c45a9a31 100644 --- a/resources/views/errors/403.tpl +++ b/resources/views/errors/403.tpl @@ -5,5 +5,5 @@ @section('content')

403 Forbidden

-

详细信息:{{ $message }}

+

详细信息:{{ $exception->getMessage() ?: "你并没有权限查看此页面" }}

@endsection diff --git a/resources/views/errors/404.tpl b/resources/views/errors/404.tpl index c2be6bae..31db1998 100644 --- a/resources/views/errors/404.tpl +++ b/resources/views/errors/404.tpl @@ -5,5 +5,5 @@ @section('content')

404 Not Found

-

详细信息:{{ $message or "这里啥都没有哦" }}

+

详细信息:{{ $exception->getMessage() ?: "这里啥都没有哦" }}

@endsection diff --git a/resources/views/errors/503.tpl b/resources/views/errors/503.tpl index 0871b066..bc6b1f8f 100644 --- a/resources/views/errors/503.tpl +++ b/resources/views/errors/503.tpl @@ -5,5 +5,5 @@ @section('content')

Be right back.

-

详细信息:{{ $message or "Application is now in maintenance mode." }}

+

详细信息:{{ $exception->getMessage() ?: "Application is now in maintenance mode." }}

@endsection