guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/17: daemon: Simplify “empty status” substitute error message.


From: guix-commits
Subject: 01/17: daemon: Simplify “empty status” substitute error message.
Date: Mon, 4 Dec 2023 16:50:32 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit d83d4488da5c3bb65867bffa2b8587a7c7b056cc
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sat Dec 2 12:03:03 2023 +0100

    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
---
 nix/libstore/build.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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<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];



reply via email to

[Prev in Thread] Current Thread [Next in Thread]