daemon: Clarify ‘--check’ error when outputs are missing.
authorTobias Geerinckx-Rice <me@tobias.gr>
Sun, 29 May 2022 00:00:01 +0000 (02:00 +0200)
committerTobias Geerinckx-Rice <me@tobias.gr>
Sun, 29 May 2022 00:00:00 +0000 (02:00 +0200)
Drop the confusing ‘invalid’ jargon and display a hint like we do
for ‘--fallback’.

* nix/libstore/build.cc (DerivationGoal::outputsSubstituted): Rewrite error message.

nix/libstore/build.cc

index 9305208..006e4eb 100644 (file)
@@ -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. */