diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-12-13 16:54:40 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-06-03 18:15:11 +0200 |
commit | 66d086cc26c55bf317184b08dd8e04c9736c9514 (patch) | |
tree | a3151f6a3a5be6ae1c5618a49cacc1ed0a406bdf | |
parent | b499d2efbfbe83c4683e2c778494541937c816f3 (diff) | |
download | guix-66d086cc26c55bf317184b08dd8e04c9736c9514.tar.gz |
Better error message
-rw-r--r-- | nix/libstore/remote-store.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nix/libstore/remote-store.cc b/nix/libstore/remote-store.cc index 9d75282334..706904c74d 100644 --- a/nix/libstore/remote-store.cc +++ b/nix/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; |