about summary refs log tree commit diff
path: root/src/nix-daemon/nix-daemon.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix-daemon/nix-daemon.cc')
-rw-r--r--src/nix-daemon/nix-daemon.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nix-daemon/nix-daemon.cc b/src/nix-daemon/nix-daemon.cc
index 3e6d6b2b1170..6d166c427480 100644
--- a/src/nix-daemon/nix-daemon.cc
+++ b/src/nix-daemon/nix-daemon.cc
@@ -548,7 +548,7 @@ static void processConnection(bool trusted)
         /* Prevent users from doing something very dangerous. */
         if (geteuid() == 0 &&
             querySetting("build-users-group", "") == "")
-            throw Error("if you run `nix-daemon' as root, then you MUST set `build-users-group'!");
+            throw Error("if you run ‘nix-daemon’ as root, then you MUST set ‘build-users-group’!");
 #endif
 
         /* Open the store. */
@@ -683,7 +683,7 @@ static void daemonLoop(char * * argv)
         struct sockaddr_un addr;
         addr.sun_family = AF_UNIX;
         if (socketPathRel.size() >= sizeof(addr.sun_path))
-            throw Error(format("socket path `%1%' is too long") % socketPathRel);
+            throw Error(format("socket path ‘%1%’ is too long") % socketPathRel);
         strcpy(addr.sun_path, socketPathRel.c_str());
 
         unlink(socketPath.c_str());
@@ -695,12 +695,12 @@ static void daemonLoop(char * * argv)
         int res = bind(fdSocket, (struct sockaddr *) &addr, sizeof(addr));
         umask(oldMode);
         if (res == -1)
-            throw SysError(format("cannot bind to socket `%1%'") % socketPath);
+            throw SysError(format("cannot bind to socket ‘%1%’") % socketPath);
 
         chdir("/"); /* back to the root */
 
         if (listen(fdSocket, 5) == -1)
-            throw SysError(format("cannot listen on socket `%1%'") % socketPath);
+            throw SysError(format("cannot listen on socket ‘%1%’") % socketPath);
     }
 
     closeOnExec(fdSocket);
@@ -752,7 +752,7 @@ static void daemonLoop(char * * argv)
                 trusted = true;
 
             if (!trusted && !matchUser(user, group, allowedUsers))
-                throw Error(format("user `%1%' is not allowed to connect to the Nix daemon") % user);
+                throw Error(format("user ‘%1%’ is not allowed to connect to the Nix daemon") % user);
 
             printMsg(lvlInfo, format((string) "accepted connection from pid %1%, user %2%"
                     + (trusted ? " (trusted)" : "")) % clientPid % user);