Skip to content

Commit 616412c

Browse files
authored
Update DefaultClient.php
1 parent ca56017 commit 616412c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/DefaultClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function getBaseUri(): ?string
1313

1414
public function handleEmptyResponse(?string $content = null, ?ResponseInterface $response = null)
1515
{
16-
return null;
16+
throw new \RuntimeException(sprintf("Request fail , response body is ein class %s", static::class), $response->getStatusCode());
1717
}
1818

1919
public function isErrorResponse(array $data): bool

0 commit comments

Comments
 (0)