guix-commits
[Top][All Lists]
Advanced

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

09/27: Better error message


From: Ludovic Courtès
Subject: 09/27: Better error message
Date: Wed, 03 Jun 2015 22:00:36 +0000

civodul pushed a commit to branch nix
in repository guix.

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

    Better error message
---
 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 9d75282..706904c 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;



reply via email to

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