diff options
author | Christian Schneider | 2024-05-07 14:54:09 +0200 |
---|---|---|
committer | Christian Schneider | 2024-05-07 14:54:09 +0200 |
commit | ec353b98fd0318d129dbc98e4c305d326711cbf8 (patch) | |
tree | a06463ab5db420967c8a2f02f85b8b390995557c | |
parent | 4f42504a8c67208c89595a92fa393d7222fb9cf4 (diff) | |
download | itools-ec353b98fd0318d129dbc98e4c305d326711cbf8.tar.gz itools-ec353b98fd0318d129dbc98e4c305d326711cbf8.tar.bz2 itools-ec353b98fd0318d129dbc98e4c305d326711cbf8.zip |
Show error string containing http status in alerts
-rw-r--r-- | it_url.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class index ce33c45..b38eaf1 100644 --- a/it_url.class +++ b/it_url.class @@ -385,7 +385,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_strerror(curl_errno($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' => ['Error description' => $this->errstr] + curl_getinfo($curl) + ($p['verbose'] ? ['verbose' => $this->verbose] : [])]); } return $result; |