aboutsummaryrefslogtreecommitdiff
path: root/command/download.php
diff options
context:
space:
mode:
authorMaZderMind2016-12-24 17:42:58 +0100
committerMaZderMind2016-12-24 17:42:58 +0100
commit8d3c6a3afb5e5c1a1847e0de0f618acb22d51b3a (patch)
tree3420b4f5c3da44f17467ef0e4753750cf8705de0 /command/download.php
parent728b67508e8eddcf256d7dd7ce0457b04f2e1a0f (diff)
handle download-errors again
Diffstat (limited to 'command/download.php')
-rw-r--r--command/download.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/command/download.php b/command/download.php
index 9ec042e..2cf997e 100644
--- a/command/download.php
+++ b/command/download.php
@@ -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;