diff options
author | Urban Müller | 2019-04-17 14:58:11 +0200 |
---|---|---|
committer | Urban Müller | 2019-04-17 14:58:11 +0200 |
commit | 9946d81f9f8132d78edad5a892c5217a3e01259c (patch) | |
tree | 6cfd83e3d70496b1e3d5d635e7d9ee3a0deaf47e | |
parent | a55604b32903e2b46d869b25128df976b7ab82f8 (diff) | |
download | itools-9946d81f9f8132d78edad5a892c5217a3e01259c.tar.gz itools-9946d81f9f8132d78edad5a892c5217a3e01259c.tar.bz2 itools-9946d81f9f8132d78edad5a892c5217a3e01259c.zip |
specify method in err msg
-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 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; |