From fa2063ca3500139841d6969e5572a83ac9bb3589 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 13 Dec 2014 16:54:40 +0100 Subject: Better error message --- src/libstore/remote-store.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/remote-store.cc b/src/libstore/remote-store.cc index 16296bdc08d8..acc895409eba 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; -- cgit 1.4.1