Improve error message with --repair for untrusted users

This commit is contained in:
Eelco Dolstra 2018-01-08 19:13:48 +01:00
parent 6e0989685a
commit 7b9583680e
No known key found for this signature in database
GPG Key ID: 8170B4726D7198DE

View File

@ -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);