From d83d4488da5c3bb65867bffa2b8587a7c7b056cc Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sat, 2 Dec 2023 12:03:03 +0100 Subject: daemon: Simplify “empty status” substitute error message. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * nix/libstore/build.cc (SubstitutionGoal::finished): Don’t show what the empty status looks like. Change-Id: Ie898432aeb047aff3d59024de6ed6d18f68903c4 --- nix/libstore/build.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nix') diff --git a/nix/libstore/build.cc b/nix/libstore/build.cc index c5383bc756..e8259aa4e8 100644 --- a/nix/libstore/build.cc +++ b/nix/libstore/build.cc @@ -3074,8 +3074,8 @@ void SubstitutionGoal::finished() auto statusList = tokenizeString >(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]; -- cgit v1.2.3