Merge pull request #6430 from NixOS/missing-realisation-error-message

Fix the error message in case of a missing realisation
This commit is contained in:
Eelco Dolstra 2022-04-21 09:40:24 +02:00 committed by GitHub
commit 3db663a3e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -831,8 +831,8 @@ std::vector<std::pair<std::shared_ptr<Installable>, BuiltPath>> Installable::bui
auto realisation = store->queryRealisation(outputId);
if (!realisation)
throw Error(
"cannot operate on an output of unbuilt "
"content-addressed derivation '%s'",
"cannot operate on an output of the "
"unbuilt derivation '%s'",
outputId.to_string());
outputs.insert_or_assign(output, realisation->outPath);
} else {