From 1d4938bb094fb9c25cc4716a759eb428465d64bb Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 26 May 2015 22:12:34 +0200 Subject: [PATCH] Small fix in error handler. --- app/Exceptions/Handler.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 4a9d49b8e1..0c8281c825 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -2,6 +2,7 @@ use Exception; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; +use Symfony\Component\HttpKernel\Exception\HttpException; /** * Class Handler @@ -33,7 +34,7 @@ class Handler extends ExceptionHandler */ public function render($request, Exception $e) { - if ($this->isHttpException($e)) { + if ($e instanceof HttpException) { return $this->renderHttpException($e); } else { return parent::render($request, $e);