fix bug of custom exception renderer
This commit is contained in:
parent
999a5b040b
commit
1a19bc065d
|
|
@ -31,7 +31,9 @@ class E extends \Exception
|
||||||
|
|
||||||
private function showErrorPage()
|
private function showErrorPage()
|
||||||
{
|
{
|
||||||
echo \View::make('errors.e')->with('code', $this->code)->with('message', $this->message);
|
echo \View::make('errors.e')->with('code', $this->code)
|
||||||
|
->with('message', $this->message)
|
||||||
|
->render();
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
@section('title', '出现错误')
|
@section('title', '出现错误')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<h1>{{ 出现了一些错误:}}</h1>
|
<h1>出现了一些错误:</h1>
|
||||||
|
|
||||||
<p>错误码: {{ $code }}</p>
|
<p>错误码: {{ $code }}</p>
|
||||||
<p>详细信息:{{ $message }}</p>
|
<p>详细信息:{{ $message }}</p>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user