From 9946d81f9f8132d78edad5a892c5217a3e01259c Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 17 Apr 2019 14:58:11 +0200 Subject: specify method in err msg --- it_url.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3