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

libexpr: Fix error message in forceStringNoCtx

Otherwise it would print the address of the value.
This commit is contained in:
Sergei Zimmerman 2025-11-11 04:12:44 +03:00
parent 295ad5c05f
commit a5eba9a354
No known key found for this signature in database

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();
}