summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2019-04-17 14:58:11 +0200
committerUrban Müller2019-04-17 14:58:11 +0200
commit9946d81f9f8132d78edad5a892c5217a3e01259c (patch)
tree6cfd83e3d70496b1e3d5d635e7d9ee3a0deaf47e
parenta55604b32903e2b46d869b25128df976b7ab82f8 (diff)
downloaditools-9946d81f9f8132d78edad5a892c5217a3e01259c.tar.gz
itools-9946d81f9f8132d78edad5a892c5217a3e01259c.tar.bz2
itools-9946d81f9f8132d78edad5a892c5217a3e01259c.zip
specify method in err msg
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class
index e557ccf..70b525c 100644
--- a/it_url.class
+++ b/it_url.class
@@ -296,7 +296,7 @@ function request($p=array())
}
if ($got === false && $p['retries'] <= 0) {
- it::error((array)$p['it_error'] + ['title' => "problem getting $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'] ?: "GET") . "-ing $url->url with curl: (" . curl_errno($curl) . ") " . curl_error($curl), 'body' => curl_getinfo($curl) + ($p['verbose'] ? ['verbose' => $this->verbose] : [])]);
}
return $result;