Skip to content

Commit 3f7e9b8

Browse files
authored
Merge pull request #304 from jfugalde/ES-5745
chore(search): ES-5745 Prevent null message passed to ServerError
2 parents deebe4b + 110fc9d commit 3f7e9b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Bigcommerce/Api/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ private function handleResponse()
330330
}
331331
} elseif ($status >= 500 && $status <= 599) {
332332
if ($this->failOnError) {
333-
throw new ServerError($body, $status, $this->responseHeaders);
333+
throw new ServerError($body ?? '', $status, $this->responseHeaders);
334334
} else {
335335
$this->lastError = $body;
336336
return false;

0 commit comments

Comments
 (0)