Skip to content

Commit 7b95836

Browse files
committedJan 8, 2018
Improve error message with --repair for untrusted users
1 parent 6e09896 commit 7b95836

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/nix-daemon/nix-daemon.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ static void performOp(TunnelLogger * logger, ref<LocalStore> store,
411411
/* Repairing is not atomic, so disallowed for "untrusted"
412412
clients. */
413413
if (mode == bmRepair && !trusted)
414-
throw Error("repairing is not supported when building through the Nix daemon");
414+
throw Error("repairing is not allowed because you are not in 'trusted-users'");
415415
}
416416
logger->startWork();
417417
store->buildPaths(drvs, mode);

0 commit comments

Comments
 (0)
Please sign in to comment.