diff options
| author | Urban Müller | 2026-04-09 16:31:24 +0200 |
|---|---|---|
| committer | Urban Müller | 2026-04-09 16:31:24 +0200 |
| commit | ceeda2d908874d51fb59c3cadbf067f75f405116 (patch) | |
| tree | aaaebe5216660d46ffee530f0af9a9afd38351d1 | |
| parent | aaa6a46ed558d0fce4ae0d349ea66e6b66143fdb (diff) | |
| download | itools-ceeda2d908874d51fb59c3cadbf067f75f405116.tar.gz itools-ceeda2d908874d51fb59c3cadbf067f75f405116.tar.bz2 itools-ceeda2d908874d51fb59c3cadbf067f75f405116.zip | |
more detailed err messages
| -rw-r--r-- | it_url.class | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/it_url.class b/it_url.class index 5cfaf53..a0e1607 100644 --- a/it_url.class +++ b/it_url.class @@ -191,7 +191,7 @@ static function _default_headers($url, $p) { $search_subrequest = it::match('\bsearch\.ch/', $p['url']); if ((!it::is_devel() || EDC('subreqcheck')) && $p['url'] && !$p['headers']['Accept-Language'] && T_lang() != T_defaultlang() && $search_subrequest && !it::match('/login\b|banner\.html|machines\.txt|mbtiles\.php|/fonts/|/itjs/|/images/|\.(de|fr|en|it)(\.js|\.html|\.txt|\.php|\.ics|\.pdf|\.json|\.csv|\.gif|\.jpg|\.png)', $p['url'])) - it::error(['title' => "Subrequest without language override", 'body' => [ $p ]]); + it::error(['title' => "Subrequest without language override to " . $p['url'], 'body' => $p]); $headers = array_filter([ 'Host' => $url->realhostname . $url->explicitport, @@ -755,7 +755,7 @@ static function get_cache_contents($p) $result = self::_postprocess($result, $p); } else - $result = it::error((array)$p['it_error'] + ['title' => $p['safety'] === 0 ? false : "failed getting " . static::absolute($p['url']), 'body' => $p]); + $result = it::error((array)$p['it_error'] + ['title' => $p['safety'] === 0 ? false : "failed getting " . static::absolute($p['url']), 'body' => $p + ['fn' => $fn, 'dummy' => $dummy, 'cachemiss' => $cachemiss]]); return $result; } |