Change error messages about 'invalid paths' to 'path does not exist'.

Fixes #270.

Change-Id: I07d2da41498cfdf324a03af40533044d58c97c7e
This commit is contained in:
julia
2024-06-16 03:55:39 +00:00
parent 6c311a4afa
commit 89c782b0c0
5 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -170,7 +170,7 @@ ref<const ValidPathInfo> BinaryCacheStore::addToStoreCommon(
if (ref != info.path)
queryPathInfo(ref);
} catch (InvalidPath &) {
throw Error("cannot add '%s' to the binary cache because the reference '%s' is not valid",
throw Error("cannot add '%s' to the binary cache because the reference '%s' does not exist",
printStorePath(info.path), printStorePath(ref));
}