fix bug of custom exception renderer

This commit is contained in:
printempw 2016-07-23 14:10:53 +08:00
parent 999a5b040b
commit 1a19bc065d
2 changed files with 4 additions and 2 deletions

View File

@ -31,7 +31,9 @@ class E extends \Exception
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;
}
}

View File

@ -3,7 +3,7 @@
@section('title', '出现错误')
@section('content')
<h1>{{ }}</h1>
<h1>出现了一些错误:</h1>
<p>错误码: {{ $code }}</p>
<p>详细信息:{{ $message }}</p>