From f0dce8150bbac325d17d72725ed0253caa72f42b Mon Sep 17 00:00:00 2001 From: Jade Lovelace Date: Thu, 23 Jan 2025 14:24:12 -0800 Subject: [PATCH] fix: bad error message for nix store delete --ignore-liveness Found at work; the message implies you aren't trusted-user when it actually is that ignore-liveness is always rejected by the daemon. Whether this command is actually a good idea varies substantially of course. Change-Id: I47a710b835fd082ac85a24c7329f21117b1341ee --- lix/libstore/daemon.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lix/libstore/daemon.cc b/lix/libstore/daemon.cc index fc1c61255..9d7a7d7c1 100644 --- a/lix/libstore/daemon.cc +++ b/lix/libstore/daemon.cc @@ -733,7 +733,7 @@ static void performOp(AsyncIoRoot & aio, TunnelLogger * logger, ref store logger->startWork(); if (options.ignoreLiveness) - throw Error("you are not allowed to ignore liveness"); + throw Error("ignore-liveness is not supported via the Lix daemon; try running the command again with `--store local` and as the user that owns the Nix store (usually root)"); auto & gcStore = require(*store); aio.blockOn(gcStore.collectGarbage(options, results)); logger->stopWork();