forked from lix-project/lix
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"
|
/* Repairing is not atomic, so disallowed for "untrusted"
|
||||||
clients. */
|
clients. */
|
||||||
if (mode == bmRepair && !trusted)
|
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();
|
logger->startWork();
|
||||||
store->buildPaths(drvs, mode);
|
store->buildPaths(drvs, mode);
|
||||||
|
|
Loading…
Reference in a new issue