Skip to content

Firefly III: a personal finances manager

Small fix in error handler.

James Cole1d4938bb094f
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);