fix sse error handling if shop api error part 3
This commit is contained in:
@@ -42,6 +42,10 @@ final class StoreApiException extends RuntimeException
|
||||
|
||||
public function isSystemFailure(): bool
|
||||
{
|
||||
return $this->serverFailure || $this->utf8Failure;
|
||||
if ($this->serverFailure || $this->utf8Failure) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return $this->statusCode === 401 || $this->statusCode === 403;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user