Skip to content

Commit cd71ee1

Browse files
wip
1 parent 297bbd2 commit cd71ee1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/router/src/HandleRouteExceptionMiddleware.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ public function __invoke(Request $request, HttpMiddlewareCallable $next): Respon
3131
if ($this->routeConfig->throwHttpExceptions === true) {
3232
$response = $this->forward($request, $next);
3333

34-
$isValidationError = $response->status === Status::UNPROCESSABLE_CONTENT;
35-
36-
if (! $isValidationError && ($response->status->isServerError() || $response->status->isClientError())) {
34+
if ($response->status->isServerError() || $response->status->isClientError()) {
3735
throw new HttpRequestFailed(
3836
request: $request,
3937
status: $response->status,

0 commit comments

Comments
 (0)