Small fix in error handler.

This commit is contained in:
James Cole
2015-05-26 22:12:34 +02:00
parent bbf4007c3e
commit 1d4938bb09

View File

@@ -2,6 +2,7 @@
use Exception; use Exception;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Symfony\Component\HttpKernel\Exception\HttpException;
/** /**
* Class Handler * Class Handler
@@ -33,7 +34,7 @@ class Handler extends ExceptionHandler
*/ */
public function render($request, Exception $e) public function render($request, Exception $e)
{ {
if ($this->isHttpException($e)) { if ($e instanceof HttpException) {
return $this->renderHttpException($e); return $this->renderHttpException($e);
} else { } else {
return parent::render($request, $e); return parent::render($request, $e);