This commit is contained in:
2023-08-18 21:43:12 +08:00
parent ee1d61a7d0
commit e5d34d2519
+1 -1
View File
@@ -27,7 +27,7 @@ class ExceptionHandlerDispatcher implements ExceptionHandlerInterface
public function emit(Throwable $exception, object $response): ResponseInterface
{
error($exception);
$response->withContentType(ContentType::HTML)->withBody(new Stream(jTraceEx($exception, null, true)));
$response->withContentType(ContentType::HTML)->withBody(new Stream(throwable($exception)));
if ($exception->getCode() == 404) {
return $response->withStatus(404);
} else {