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 0f487b2 commit 58f3cf8Copy full SHA for 58f3cf8
src/Client/Client.php
@@ -192,7 +192,7 @@ private static function handleException(\Throwable $exception): \Throwable
192
193
if ($exception instanceof ClientException || $exception instanceof ServerException) {
194
$message = $exception->getResponse()->getBody()->getContents();
195
- return new ShopwareResponseException($message, $exception->getResponse()->getStatusCode());
+ return new ShopwareResponseException($message, $exception->getResponse()->getStatusCode(), $exception);
196
}
197
198
return $exception;
0 commit comments