guix-commits
[Top][All Lists]
Advanced

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

359/376: Better error message


From: Ludovic Courtès
Subject: 359/376: Better error message
Date: Wed, 28 Jan 2015 22:06:11 +0000

civodul pushed a commit to tag 1.8
in repository guix.

commit fa2063ca3500139841d6969e5572a83ac9bb3589
Author: Eelco Dolstra <address@hidden>
Date:   Sat Dec 13 16:54:40 2014 +0100

    Better error message
---
 src/libstore/remote-store.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/libstore/remote-store.cc b/src/libstore/remote-store.cc
index 16296bd..acc8954 100644
--- a/src/libstore/remote-store.cc
+++ b/src/libstore/remote-store.cc
@@ -109,7 +109,7 @@ void RemoteStore::connectToDaemon()
        applications... */
     AutoCloseFD fdPrevDir = open(".", O_RDONLY);
     if (fdPrevDir == -1) throw SysError("couldn't open current directory");
-    if (chdir(dirOf(socketPath).c_str()) == -1) throw SysError("couldn't 
change current directory");
+    if (chdir(dirOf(socketPath).c_str()) == -1) throw 
SysError(format("couldn't change to directory of ‘%1%’") % socketPath);
     Path socketPathRel = "./" + baseNameOf(socketPath);
 
     struct sockaddr_un addr;



reply via email to

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