We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fb09b4 commit 4e4cd23Copy full SHA for 4e4cd23
1 file changed
src/CoroutineHandler.php
@@ -77,7 +77,8 @@ public function __invoke(RequestInterface $request, array $options)
77
try {
78
$raw = $client->request($request->getMethod(), $path, $headers, (string) $request->getBody());
79
} catch (Exception $exception) {
80
- $exception = new ConnectException($exception->getMessage(), $request, null, [
+ $message = sprintf('Failed to connecting to %s port %s, %s', $host, $port, $exception->getMessage());
81
+ $exception = new ConnectException($message, $request, null, [
82
'errCode' => $exception->getCode(),
83
]);
84
return Create::rejectionFor($exception);
0 commit comments