Skip to content

Commit 560646f

Browse files
author
Dominik Hošic
committed
Truncating error response fix
1 parent 1beada1 commit 560646f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Request.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@ public function send(): Response
234234
$responseBody = $response->getBody()->getContents();
235235

236236
return new Response($responseBody);
237-
} catch (GuzzleException $e) {
238-
throw new \Exception($e->getMessage());
237+
} catch (\Exception $e) {
238+
throw new \Exception($e->getResponse()->getBody()->getContents());
239239
}
240240
}
241241

0 commit comments

Comments
 (0)