Skip to content

Commit 282e9f8

Browse files
committed
Merge branch 'master' into 3.2-merge
2 parents 08c5086 + 4e4cd23 commit 282e9f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/CoroutineHandler.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ public function __invoke(RequestInterface $request, array $options)
7777
try {
7878
$raw = $client->request($request->getMethod(), $path, $headers, (string) $request->getBody());
7979
} catch (Exception $exception) {
80-
$exception = new ConnectException($exception->getMessage(), $request, null, [
80+
$message = sprintf('Failed to connecting to %s port %s, %s', $host, $port, $exception->getMessage());
81+
$exception = new ConnectException($message, $request, null, [
8182
'errCode' => $exception->getCode(),
8283
]);
8384
return Create::rejectionFor($exception);

0 commit comments

Comments
 (0)