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
This commit is contained in:
Teo Camarasu
2025-06-22 15:40:52 +00:00
parent 242a228124
commit 2172683388
+1 -1
View File
@@ -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.