Skip to content

Commit 79763b4

Browse files
committed
Fix: Add extra check to error response handling
1 parent 067c69f commit 79763b4

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
@@ -490,7 +490,7 @@ protected function parseClientError(HttpException $exception)
490490
if (isset($res['web_service_result'])) {
491491
$res = $res['web_service_result'];
492492
}
493-
$err = $res['errorList']['error'][0];
493+
$err = isset($res['errorList']['error'][0]) ? $res['errorList']['error'][0] : $res['errorList']['error'];
494494
$message = $err['errorMessage'];
495495
$code = $err['errorCode'];
496496
break;

0 commit comments

Comments
 (0)