Commit 309ecaa4 authored by shajiaiming's avatar shajiaiming

fix

parent 63306171
...@@ -168,7 +168,7 @@ class CurlHttpClient ...@@ -168,7 +168,7 @@ class CurlHttpClient
// Connect failed? // Connect failed?
if (!$this->response) { if (!$this->response) {
$error = 'CurlHttpClient: Could not connect to ' . $full_url; $error = 'CurlHttpClient: Could not connect to ' . $full_url;
\Yii::$app->fpf->error('http', curl_errno($this->curl_handle), __CLASS__, __FUNCTION__, ' ERROR:' .$error); \Yii::$app->fpf->error('http', curl_error($this->curl_handle), __CLASS__, __FUNCTION__, ' ERROR:' .$error);
curl_close($this->curl_handle); curl_close($this->curl_handle);
$this->curl_handle = null; $this->curl_handle = null;
throw new CurlHttpException($error, CurlHttpException::NOT_OPEN); throw new CurlHttpException($error, CurlHttpException::NOT_OPEN);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment