Commit 9db97c32 authored by Taylor Otwell's avatar Taylor Otwell

Tweak a few error handling things.

parent 35b3e8f3
...@@ -5,6 +5,15 @@ use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; ...@@ -5,6 +5,15 @@ use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
class Handler extends ExceptionHandler { class Handler extends ExceptionHandler {
/**
* A list of the exception types that should not be reported.
*
* @var array
*/
protected $dontReport = [
'Symfony\Component\HttpKernel\Exception\HttpException'
];
/** /**
* Report or log an exception. * Report or log an exception.
* *
...@@ -27,7 +36,14 @@ class Handler extends ExceptionHandler { ...@@ -27,7 +36,14 @@ class Handler extends ExceptionHandler {
*/ */
public function render($request, Exception $e) public function render($request, Exception $e)
{ {
return parent::render($request, $e); if ($this->isHttpException($e))
{
return $this->renderHttpException($e);
}
else
{
return parent::render($request, $e);
}
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment