about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-10-31T08·36+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-10-31T08·36+0100
commite389f4ea555da67c4f0f254fd223d7b4d86e0eec (patch)
treee28ae1e2579da19bfebeb705818347b3568008d8 /src
parent1cdbb9d7242375a5b706b7ff24fb457e9155ca2c (diff)
Improve error message if the daemon worker fails to start
Diffstat (limited to 'src')
-rw-r--r--src/libstore/remote-store.cc3
-rw-r--r--src/nix-daemon/nix-daemon.cc2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/libstore/remote-store.cc b/src/libstore/remote-store.cc
index a0e9f22410f7..650f177986a0 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 8ec54e4580dc..09064fd693aa 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;
     }