Skip to content

Commit c7e03f6

Browse files
committed
Ignore non-200 status for error message
1 parent 1096bd2 commit c7e03f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/leanstorage/LeanStorageClient.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function request(Request $request): PromiseInterface
6363

6464
return $this->httpClient->request($request->getMethod(), $request->getPath(), $options + $this->options)
6565
->then(static function (ResponseInterface $response) {
66-
$response = $response->toArray();
66+
$response = $response->toArray(false);
6767

6868
if (isset($response['error'])) {
6969
throw RequestException::fromResponse($response);

0 commit comments

Comments
 (0)