about summary refs log tree commit diff
path: root/scripts/download-using-manifests.pl.in
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2011-03-16T15·55+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2011-03-16T15·55+0000
commit0423d0692abebf16a19b65b37d4926de2539bf1c (patch)
tree73a518b6cc204f1453bb0bc3a8e6716239e10efb /scripts/download-using-manifests.pl.in
parent48bdbbf07042f130996c0d9116893cc9f8ed2488 (diff)
* Print a better error message.
Diffstat (limited to 'scripts/download-using-manifests.pl.in')
-rw-r--r--scripts/download-using-manifests.pl.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/download-using-manifests.pl.in b/scripts/download-using-manifests.pl.in
index fe80bc11f3a7..4ae24067b3d5 100644
--- a/scripts/download-using-manifests.pl.in
+++ b/scripts/download-using-manifests.pl.in
@@ -295,7 +295,7 @@ sub downloadFile {
     $ENV{"PRINT_PATH"} = 1;
     $ENV{"QUIET"} = 1;
     my ($hash, $path) = `$binDir/nix-prefetch-url '$url'`;
-    die "download of `$url' failed" unless $? == 0;
+    die "download of `$url' failed" . ($! ? ": $!" : "") unless $? == 0;
     chomp $path;
     return $path;
 }