From 0ca5b09a8ddddba765a0ce21ba3b2134e0a6854f Mon Sep 17 00:00:00 2001 From: Chris Johnson Date: Thu, 8 Jun 2017 08:50:55 -0500 Subject: [PATCH] Proposed fix for issue #1. --- src/ExceptionHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ExceptionHandler.php b/src/ExceptionHandler.php index dd0e119..669656f 100644 --- a/src/ExceptionHandler.php +++ b/src/ExceptionHandler.php @@ -65,7 +65,7 @@ public function __invoke(Request $request, Response $response, callable $next) try { $response = $next($request, $response); } catch (Exception $e) { - $response = $this->exceptionResponse->withStatus(500); + $response = $this->exceptionResponse->withStatus(500, $e->getMessage()); $response->getBody()->write(get_class($e) . ': ' . $e->getMessage()); } return $response;