From 8d3c6a3afb5e5c1a1847e0de0f618acb22d51b3a Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sat, 24 Dec 2016 17:42:58 +0100 Subject: handle download-errors again --- command/download.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'command/download.php') 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; -- cgit v1.2.3