We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 053b7ec + 78886a8 commit 9c83728Copy full SHA for 9c83728
src/FreshMail/Client.php
@@ -74,7 +74,10 @@ public function doRequest(string $uri, array $params = [])
74
throw new UnauthorizedException('Request unauthorized');
75
}
76
77
- throw new \FreshMail\ApiV2\ClientException(sprintf('Connection error, error message: '.$exception->getMessage()));
+ throw new \FreshMail\ApiV2\ClientException(sprintf(
78
+ 'Connection error, error message: %s',
79
+ $exception->getResponse()->getBody()->getContents()
80
+ ));
81
} catch (\GuzzleHttp\Exception\ConnectException $exception) {
82
throw new ConnectionException(sprintf('Connection error, error message: '.$exception->getMessage()));
83
0 commit comments