Skip to content

Commit 58f3cf8

Browse files
author
Frederik Schmitt
committed
feat: pass previous exception to ShopwareResponseException
1 parent 0f487b2 commit 58f3cf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Client/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ private static function handleException(\Throwable $exception): \Throwable
192192

193193
if ($exception instanceof ClientException || $exception instanceof ServerException) {
194194
$message = $exception->getResponse()->getBody()->getContents();
195-
return new ShopwareResponseException($message, $exception->getResponse()->getStatusCode());
195+
return new ShopwareResponseException($message, $exception->getResponse()->getStatusCode(), $exception);
196196
}
197197

198198
return $exception;

0 commit comments

Comments
 (0)