guix-commits
[Top][All Lists]
Advanced

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

276/376: Improve error message if the daemon worker fails to start


From: Ludovic Courtès
Subject: 276/376: Improve error message if the daemon worker fails to start
Date: Wed, 28 Jan 2015 22:05:35 +0000

civodul pushed a commit to tag 1.8
in repository guix.

commit e389f4ea555da67c4f0f254fd223d7b4d86e0eec
Author: Eelco Dolstra <address@hidden>
Date:   Fri Oct 31 09:36:09 2014 +0100

    Improve error message if the daemon worker fails to start
---
 src/libstore/remote-store.cc |    3 +--
 src/nix-daemon/nix-daemon.cc |    2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/libstore/remote-store.cc b/src/libstore/remote-store.cc
index a0e9f22..650f177 100644
--- a/src/libstore/remote-store.cc
+++ b/src/libstore/remote-store.cc
@@ -87,8 +87,7 @@ void RemoteStore::openConnection(bool reserveSpace)
         processStderr();
     }
     catch (Error & e) {
-        throw Error(format("cannot start worker (%1%)")
-            % e.msg());
+        throw Error(format("cannot start daemon worker: %1%") % e.msg());
     }
 
     setOptions();
diff --git a/src/nix-daemon/nix-daemon.cc b/src/nix-daemon/nix-daemon.cc
index 8ec54e4..09064fd 100644
--- a/src/nix-daemon/nix-daemon.cc
+++ b/src/nix-daemon/nix-daemon.cc
@@ -565,7 +565,7 @@ static void processConnection(bool trusted)
         to.flush();
 
     } catch (Error & e) {
-        stopWork(false, e.msg());
+        stopWork(false, e.msg(), GET_PROTOCOL_MINOR(clientVersion) >= 8 ? 1 : 
0);
         to.flush();
         return;
     }



reply via email to

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