Skip to content

Commit

Permalink
Merge pull request #105 from dimaxz/master-1
Browse files Browse the repository at this point in the history
Update ApiResponseException.php
  • Loading branch information
tooyz authored Aug 20, 2023
2 parents e23c2f1 + 2c63b1a commit f397e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Exceptions/ApiResponseException.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __construct($request, $response)
$error = is_array($response) ? $response[0]->errors[0] : $response->errors[0];
$this->code = $error->code;
$this->errorText = $error->error;
$this->moreInfo = $error->moreInfo ?: null;
$this->moreInfo = !empty($error->moreInfo) ? $error->moreInfo : null;
}

public function getApiCode(){
Expand Down

0 comments on commit f397e71

Please sign in to comment.