From 0423d0692abebf16a19b65b37d4926de2539bf1c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 16 Mar 2011 15:55:57 +0000 Subject: [PATCH] * Print a better error message. --- scripts/download-using-manifests.pl.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/download-using-manifests.pl.in b/scripts/download-using-manifests.pl.in index fe80bc11f..4ae24067b 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; }