Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonreinke committed Nov 4, 2019
1 parent 72fa785 commit bd82bd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Bigcommerce/Api/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,14 +286,14 @@ private function handleResponse()

if ($status >= 400 && $status <= 499) {
if ($this->failOnError) {
throw new ClientError($body, $status);
throw new ClientError(strval($body), $status);
} else {
$this->lastError = $body;
return false;
}
} elseif ($status >= 500 && $status <= 599) {
if ($this->failOnError) {
throw new ServerError($body, $status);
throw new ServerError(strval($body), $status);
} else {
$this->lastError = $body;
return false;
Expand Down

0 comments on commit bd82bd6

Please sign in to comment.