Skip to content

Commit 110fc9d

Browse files
committed
chore(search): ES-5745 Prevent null message passed to ServerError
1 parent deebe4b commit 110fc9d

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)