From 9bab483196e79d66fbb7527f6f68816632931c45 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 7 May 2025 13:37:36 +0200 Subject: [PATCH] Improve error message Co-authored-by: Cole Helbling --- src/libexpr/eval.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index b898d8ef5..6505de7bc 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -2473,7 +2473,7 @@ StorePath EvalState::coerceToStorePath(const PosIdx pos, Value & v, NixStringCon auto path = coerceToString(pos, v, context, errorCtx, false, false, true).toOwned(); if (auto storePath = store->maybeParseStorePath(path)) return *storePath; - error("cannot coerce '%s' to a store path because it does not denote a subpath of the Nix store", path).withTrace(pos, errorCtx).debugThrow(); + error("cannot coerce '%s' to a store path because it is not a subpath of the Nix store", path).withTrace(pos, errorCtx).debugThrow(); }