From 4dc711e8029d67a75d4f0cc28304195eb4f9b673 Mon Sep 17 00:00:00 2001 From: David Flatz Date: Fri, 20 May 2022 09:37:56 +0200 Subject: try to provide more info on error --- it_url.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3