From ebe342c9c14a06bdc90096847529e744265fae3a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 25 Mar 2005 14:30:01 +0000 Subject: [PATCH] * Better error checking. --- scripts/download-using-manifests.pl.in | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/download-using-manifests.pl.in b/scripts/download-using-manifests.pl.in index 4dbc2396f7..ed3290c181 100644 --- a/scripts/download-using-manifests.pl.in +++ b/scripts/download-using-manifests.pl.in @@ -194,6 +194,7 @@ sub downloadFile { $ENV{"QUIET"} = 1; $ENV{"NIX_HASH_ALGO"} = $hashAlgo; my ($hash2, $path) = `@bindir@/nix-prefetch-url '$url' '$hash'`; + die "download of `$url' failed" unless $? == 0; chomp $hash2; chomp $path; die "hash mismatch, expected $hash, got $hash2" if $hash ne $hash2;