mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 06:34:17 +00:00
handle download-errors again
This commit is contained in:
parent
728b67508e
commit
8d3c6a3afb
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue