aboutsummaryrefslogtreecommitdiff
path: root/nix/libstore/build.cc
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2022-05-29 02:00:01 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2022-05-29 02:00:00 +0200
commit82b06436b4b563a85e70f3fcc610959482f08e91 (patch)
treed169d641ef0b55fbf165a7eb5a48440b0ead3c88 /nix/libstore/build.cc
parenta08c21f206d34a42d311e46b495b422188be70eb (diff)
downloadguix-82b06436b4b563a85e70f3fcc610959482f08e91.tar.gz
guix-82b06436b4b563a85e70f3fcc610959482f08e91.zip
daemon: Clarify ‘--check’ error when outputs are missing.
Drop the confusing ‘invalid’ jargon and display a hint like we do for ‘--fallback’. * nix/libstore/build.cc (DerivationGoal::outputsSubstituted): Rewrite error message.
Diffstat (limited to 'nix/libstore/build.cc')
-rw-r--r--nix/libstore/build.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/nix/libstore/build.cc b/nix/libstore/build.cc
index 9305208009..006e4ebbbb 100644
--- a/nix/libstore/build.cc
+++ b/nix/libstore/build.cc
@@ -979,7 +979,7 @@ void DerivationGoal::outputsSubstituted()
return;
}
if (buildMode == bmCheck && nrInvalid > 0)
- throw Error(format("some outputs of `%1%' are not valid, so checking is not possible") % drvPath);
+ throw Error(format("`%1%' is missing outputs; build it normally before using `--check'") % drvPath);
/* Otherwise, at least one of the output paths could not be
produced using a substitute. So we have to build instead. */