Skip to content

Commit

Permalink
Codeception
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrenkoAnton committed Feb 12, 2024
1 parent aa9be5f commit b4e772f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ class Handler extends ExceptionHandler
// phpcs:ignore SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingAnyTypeHint
public function render($request, Throwable $exception): JsonResponse
{
$rendered = parent::render($request, $exception);
// $rendered = parent::render($request, $exception);

return new JsonResponse(
['error' => json_decode($rendered->getContent() ?: '')],
$rendered->getStatusCode(),
['error' => json_decode($exception->getMessage())],
499,
);
}
}

0 comments on commit b4e772f

Please sign in to comment.