summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_url.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/it_url.class b/it_url.class
index d3aa6df..ea93930 100644
--- a/it_url.class
+++ b/it_url.class
@@ -261,12 +261,12 @@ function request($p=array())
}
} else {
$result = $this->result = false;
- $this->errstr = curl_error($curl);
+ $this->errstr = trim("(" . curl_errno($curl) . ") " . curl_error($curl));
$this->curlinfo = curl_getinfo($curl);
}
if ($got === false && $p['retries'] <= 0)
- it::error((array)$p['it_error'] + ['title' => "problem getting $url->url with curl: " . curl_error($curl), 'body' => curl_getinfo($curl)]);
+ it::error((array)$p['it_error'] + ['title' => "problem getting $url->url with curl: (" . curl_errno($curl) . ") " . curl_error($curl), 'body' => curl_getinfo($curl)]);
return $result;
}