about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-01-08T18·13+0100
committerEelco Dolstra <edolstra@gmail.com>2018-01-08T18·13+0100
commit7b9583680e9e1be1df2a5cd0d71ed8f9a7d45fad (patch)
tree4019e605fd37c1c9025be942a3cf61a72f0d9a4f /src
parent6e0989685ab2e7c0e24aafeaaa3f389289c9684b (diff)
Improve error message with --repair for untrusted users
Diffstat (limited to 'src')
-rw-r--r--src/nix-daemon/nix-daemon.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-daemon/nix-daemon.cc b/src/nix-daemon/nix-daemon.cc
index 5629cc64b96e..b5d49b6428ac 100644
--- a/src/nix-daemon/nix-daemon.cc
+++ b/src/nix-daemon/nix-daemon.cc
@@ -411,7 +411,7 @@ static void performOp(TunnelLogger * logger, ref<LocalStore> store,
             /* Repairing is not atomic, so disallowed for "untrusted"
                clients.  */
             if (mode == bmRepair && !trusted)
-                throw Error("repairing is not supported when building through the Nix daemon");
+                throw Error("repairing is not allowed because you are not in 'trusted-users'");
         }
         logger->startWork();
         store->buildPaths(drvs, mode);