summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
authorDavid Flatz2022-05-20 09:37:56 +0200
committerDavid Flatz2022-05-20 09:37:56 +0200
commit4dc711e8029d67a75d4f0cc28304195eb4f9b673 (patch)
tree8de64f4d1cd3cb57e43da637a088c0fd59b12c61 /it_url.class
parenta93902fe70ea19f9dd3919bae19467677d0d8bf3 (diff)
downloaditools-4dc711e8029d67a75d4f0cc28304195eb4f9b673.tar.gz
itools-4dc711e8029d67a75d4f0cc28304195eb4f9b673.tar.bz2
itools-4dc711e8029d67a75d4f0cc28304195eb4f9b673.zip
try to provide more info on error
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class
index cbf390a..b78f302 100644
--- a/it_url.class
+++ b/it_url.class
@@ -357,7 +357,7 @@ function request($p=array())
if ($got === false && $p['retries'] <= 0)
{
- it::error((array)$p['it_error'] + ['title' => "problem " . ($p['method'] ?: "gett") . "ing $url->url with curl: (" . curl_errno($curl) . ") " . curl_error($curl), 'body' => curl_getinfo($curl) + ($p['verbose'] ? ['verbose' => $this->verbose] : [])]);
+ it::error((array)$p['it_error'] + ['title' => "problem " . ($p['method'] ?: "gett") . "ing $url->url with curl: " . curl_strerror(curl_errno($curl)) . " (" . curl_errno($curl) . ") " . curl_error($curl), 'body' => curl_getinfo($curl) + ($p['verbose'] ? ['verbose' => $this->verbose] : [])]);
}
return $result;