qqq
This commit is contained in:
@@ -27,7 +27,7 @@ class ExceptionHandlerDispatcher implements ExceptionHandlerInterface
|
|||||||
public function emit(Throwable $exception, object $response): ResponseInterface
|
public function emit(Throwable $exception, object $response): ResponseInterface
|
||||||
{
|
{
|
||||||
error($exception);
|
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) {
|
if ($exception->getCode() == 404) {
|
||||||
return $response->withStatus(404);
|
return $response->withStatus(404);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user