From 2172683388853d20fe881abfa8d4d4f3e115261e Mon Sep 17 00:00:00 2001 From: Teo Camarasu Date: Sat, 21 Jun 2025 14:25:59 +0100 Subject: [PATCH] libstore: better error message when remote version is too old We clarify that the *remote* daemon is too old. Otherwise it can be a bit confusing since you might have a local daemon as well, and it's not clear if the error is coming from the local or remote end Change-Id: I17344c6f59bd7e0e62960c0025184d72ec3f012b --- lix/libstore/remote-store.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lix/libstore/remote-store.cc b/lix/libstore/remote-store.cc index 7016423d4..54adefe33 100644 --- a/lix/libstore/remote-store.cc +++ b/lix/libstore/remote-store.cc @@ -101,7 +101,7 @@ try { if (GET_PROTOCOL_MAJOR(conn.daemonVersion) != GET_PROTOCOL_MAJOR(PROTOCOL_VERSION)) throw Error("Nix daemon protocol version not supported"); if (GET_PROTOCOL_MINOR(conn.daemonVersion) < MIN_SUPPORTED_MINOR_WORKER_PROTO_VERSION) - throw Error("the Nix daemon version is too old"); + throw Error("The remote Nix daemon version is too old"); to << PROTOCOL_VERSION; // Obsolete CPU affinity.