aboutsummaryrefslogtreecommitdiff
path: root/scripts/nix-pull.in
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2007-08-15 09:24:06 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2007-08-15 09:24:06 +0000
commitdbc0170ed998484178780d9390ae0d4434bf93b0 (patch)
tree8debe7465e664b08cd5b30994135c86dac81ca49 /scripts/nix-pull.in
parent5c793ad03e08f8f795397af1d49034ac6f616ade (diff)
* Show errors in nix-prefetch-url.
Diffstat (limited to 'scripts/nix-pull.in')
-rw-r--r--scripts/nix-pull.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/nix-pull.in b/scripts/nix-pull.in
index 333a1df87..016e330dc 100644
--- a/scripts/nix-pull.in
+++ b/scripts/nix-pull.in
@@ -36,8 +36,9 @@ sub downloadFile {
$ENV{"PRINT_PATH"} = 1;
$ENV{"QUIET"} = 1;
my ($dummy, $path) = `$binDir/nix-prefetch-url '$url'`;
- chomp $path;
+ die "cannot fetch `$url'" if $? != 0;
die "nix-prefetch-url did not return a path" unless defined $path;
+ chomp $path;
return $path;
}
@@ -70,7 +71,7 @@ sub processURL {
}
if (readManifest($manifest, \%narFiles, \%localPaths, \%patches) < 3) {
- die "manifest `$url' is too old (i.e., for Nix <= 0.7)\n";
+ die "`$url' is not manifest or it is too old (i.e., for Nix <= 0.7)\n";
}
if ($skipWrongStore) {