handle download-errors again

This commit is contained in:
MaZderMind 2016-12-24 17:42:58 +01:00
parent 728b67508e
commit 8d3c6a3afb

View file

@ -125,14 +125,16 @@ function download_for_conference($what, $conference, $url, $cache)
$url,
$cache
);
if(!do_download($url, $cache))
$resp = do_download($url, $cache);
if($resp !== true)
{
stderr(
' !! download %s for conference %s from %s to %s failed miserably !!',
' !! download %s for conference %s from %s to %s failed miserably: %s !!',
$what,
$conference->getSlug(),
$url,
$cache
$cache,
$resp
);
}
return true;