Skip to content

Commit abd3cf2

Browse files
committed
changes in http request expection
1 parent a7e1bd6 commit abd3cf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public function request($method,$url,array $options)
240240
{
241241
$json_error = json_decode($e->getResponse()->getBody()->getContents(),true);
242242
if (isset($json_error['errors'])) {
243-
$error_message = \GuzzleHttp\json_encode($json_error);
243+
$error_message = $json_error['errors'];
244244
}
245245
else {
246246
$error_message = $e->getMessage();

0 commit comments

Comments
 (0)