1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-14 22:42:41 +01:00

Merge pull request #14541 from NixOS/correct-error-message

libexpr: Fix error message in forceStringNoCtx
This commit is contained in:
John Ericson 2025-11-11 01:47:48 +00:00 committed by GitHub
commit f2253a00bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2340,7 +2340,7 @@ std::string_view EvalState::forceStringNoCtx(Value & v, const PosIdx pos, std::s
error<EvalError>(
"the string '%1%' is not allowed to refer to a store path (such as '%2%')",
v.string_view(),
*v.context()->begin())
(*v.context()->begin())->view())
.withTrace(pos, errorCtx)
.debugThrow();
}