mirror of
https://github.com/NixOS/nix.git
synced 2024-11-23 15:22:27 +00:00
Better error message
This commit is contained in:
parent
c2a552b075
commit
fa2063ca35
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user