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.
1 parent 156b99a commit ae6a3e5Copy full SHA for ae6a3e5
src/Curl/Curl.php
@@ -350,7 +350,10 @@ public function exec($ch = null)
350
351
// Include additional error code information in error message when possible.
352
if ($this->curlError && function_exists('curl_strerror')) {
353
- $this->curlErrorMessage = curl_strerror($this->curlErrorCode) . ': ' . $this->curlErrorMessage;
+ $this->curlErrorMessage =
354
+ curl_strerror($this->curlErrorCode) . (
355
+ empty($this->curlErrorMessage) ? '' : ': ' . $this->curlErrorMessage
356
+ );
357
}
358
359
$this->httpStatusCode = $this->getInfo(CURLINFO_HTTP_CODE);
0 commit comments