Skip to content

Commit

Permalink
Update AmazonResponse.php
Browse files Browse the repository at this point in the history
  • Loading branch information
skuio authored Apr 10, 2021
1 parent a23463e commit 3643926
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AmazonResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function setError($error)
public function getError()
{
if (is_array($this->error)) {
return implode("\n", $this->error);
return json_encode($this->error);
}
return $this->error;
}
Expand All @@ -89,7 +89,7 @@ public function setResult($result)
public function getResult()
{
if (is_array($this->result)) {
return implode("\n", $this->result);
return json_encode($this->result);
}
return $this->result;
}
Expand Down

0 comments on commit 3643926

Please sign in to comment.