civodul pushed a commit to tag 1.8
in repository guix.
commit fa2063ca3500139841d6969e5572a83ac9bb3589
Author: Eelco Dolstra <[email protected]>
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;