Skip to content

Commit 251aa86

Browse files
authored
Merge pull request #3 from malles/patch-1
Prevent Error on exception
2 parents 035a206 + 251429d commit 251aa86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Picqer/Carriers/SendCloud/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ public function download($url)
262262
try {
263263
$result = $this->client()->get($url);
264264
} catch (RequestException $e) {
265-
throw new SendCloudApiException('SendCloud error: (no error message provided)' . $e->getResponse());
265+
throw new SendCloudApiException('SendCloud error: ' . $e->getMessage());
266266
}
267267

268268
return $result->getBody()->getContents();

0 commit comments

Comments
 (0)