mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 14:52:55 +00:00
Improve error message with --repair for untrusted users
This commit is contained in:
parent
6e0989685a
commit
7b9583680e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user