We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56f9732 commit cfb5282Copy full SHA for cfb5282
src/Picqer/Carriers/SendCloud/Connection.php
@@ -184,7 +184,7 @@ public function parseResponse(Response $response)
184
$resultArray = json_decode($response->getBody()->getContents(), true);
185
186
if (! is_array($resultArray)) {
187
- throw new SendCloudApiException('SendCloud error: Unexpected result: ' . $response->getBody()->getContents());
+ throw new SendCloudApiException(sprintf('SendCloud error %s: %s', $response->getStatusCode(), $response->getBody()->getContents()));
188
}
189
190
if (array_key_exists('error', $resultArray)
0 commit comments