Skip to content

Commit 9bab483

Browse files
edolstracole-h
andcommitted
Improve error message
Co-authored-by: Cole Helbling <cole.e.helbling@outlook.com>
1 parent 91cde8c commit 9bab483

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libexpr/eval.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2473,7 +2473,7 @@ StorePath EvalState::coerceToStorePath(const PosIdx pos, Value & v, NixStringCon
24732473
auto path = coerceToString(pos, v, context, errorCtx, false, false, true).toOwned();
24742474
if (auto storePath = store->maybeParseStorePath(path))
24752475
return *storePath;
2476-
error<EvalError>("cannot coerce '%s' to a store path because it does not denote a subpath of the Nix store", path).withTrace(pos, errorCtx).debugThrow();
2476+
error<EvalError>("cannot coerce '%s' to a store path because it is not a subpath of the Nix store", path).withTrace(pos, errorCtx).debugThrow();
24772477
}
24782478

24792479

0 commit comments

Comments
 (0)