Skip to content

Commit

Permalink
curl error msg for low version
Browse files Browse the repository at this point in the history
  • Loading branch information
Wulfric Wang committed Jul 17, 2018
1 parent 7bc46be commit 72bbe6c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Handler/CurlFactory.php
Expand Up @@ -174,10 +174,11 @@ private static function createRejection(EasyHandle $easy, array $ctx)
}

$message = sprintf(
'cURL error %s: %s (%s)',
'cURL error %s: %s (%s) for %s',
$ctx['errno'],
$ctx['error'],
'see https://curl.haxx.se/libcurl/c/libcurl-errors.html'
'see https://curl.haxx.se/libcurl/c/libcurl-errors.html',
$easy->request->getUri()
);

// Create a connection exception if it was a specific error code.
Expand Down

0 comments on commit 72bbe6c

Please sign in to comment.