From 6bb9ca26922460e95548c9d17dd828d61d1c7dcd Mon Sep 17 00:00:00 2001 From: Jimbolino Date: Tue, 3 Jan 2023 14:05:59 +0100 Subject: [PATCH] Handler prepareResponse add previous Exception --- src/Illuminate/Foundation/Exceptions/Handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Foundation/Exceptions/Handler.php b/src/Illuminate/Foundation/Exceptions/Handler.php index 5325ddca4627..40a4dc4cbda0 100644 --- a/src/Illuminate/Foundation/Exceptions/Handler.php +++ b/src/Illuminate/Foundation/Exceptions/Handler.php @@ -547,7 +547,7 @@ protected function prepareResponse($request, Throwable $e) } if (! $this->isHttpException($e)) { - $e = new HttpException(500, $e->getMessage()); + $e = new HttpException(500, $e->getMessage(), $e); } return $this->toIlluminateResponse(