diff --git a/mirror-channel.pl b/mirror-channel.pl index 18b52b1..59fac94 100644 --- a/mirror-channel.pl +++ b/mirror-channel.pl @@ -63,7 +63,7 @@ while (my ($storePath, $files) = each %narFiles) { if (! -e $dstFile) { print "downloading $srcURL\n"; my $dstFileTmp = "$narPath/.tmp.$$.nar.$dstName"; - system("$curl '$srcURL' > $dstFileTmp") == 0 or next; + system("$curl '$srcURL' > $dstFileTmp") == 0 or die "failed to download `$srcURL'"; rename($dstFileTmp, $dstFile) or die "cannot rename $dstFileTmp"; }