Skip to content

Commit

Permalink
Improve error message with --repair for untrusted users
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Jan 8, 2018
1 parent 6e09896 commit 7b95836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nix-daemon/nix-daemon.cc
Expand Up @@ -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);
Expand Down

0 comments on commit 7b95836

Please sign in to comment.