daemon: Simplify “empty status” substitute error message.

* nix/libstore/build.cc (SubstitutionGoal::finished): Don’t show what
the empty status looks like.

Change-Id: Ie898432aeb047aff3d59024de6ed6d18f68903c4
This commit is contained in:
Ludovic Courtès 2023-12-02 12:03:03 +01:00
parent 33f9d3cc36
commit d83d4488da
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -3074,8 +3074,8 @@ void SubstitutionGoal::finished()
auto statusList = tokenizeString<vector<string> >(status);
if (statusList.empty()) {
throw SubstError(format("fetching path `%1%' (empty status: '%2%')")
% storePath % status);
throw SubstError(format("fetching path `%1%' (empty status)")
% storePath);
} else if (statusList[0] == "hash-mismatch") {
if (settings.printBuildTrace) {
auto hashType = statusList[1];