From 9f96e1e25d197de46d5dbe3c4f81b8d57b9c9821 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 6 Feb 2018 16:45:13 +0100 Subject: [PATCH] Improve error message --- mirror-nixos-branch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirror-nixos-branch.pl b/mirror-nixos-branch.pl index 3f9a96c..5a0521a 100755 --- a/mirror-nixos-branch.pl +++ b/mirror-nixos-branch.pl @@ -100,7 +100,7 @@ if ($bucket->head_key("$releasePrefix")) { my $buildInfo = decode_json(fetch("$evalUrl/job/$jobName", 'application/json')); - my $srcFile = $buildInfo->{buildproducts}->{1}->{path} or die; + my $srcFile = $buildInfo->{buildproducts}->{1}->{path} or die "job '$jobName' lacks a store path"; $dstName //= basename($srcFile); my $dstFile = "$tmpDir/" . $dstName;