mirror of
https://github.com/NixOS/nix.git
synced 2025-11-14 14:32:42 +01:00
Merge pull request #14541 from NixOS/correct-error-message
libexpr: Fix error message in forceStringNoCtx
This commit is contained in:
commit
f2253a00bc
1 changed files with 1 additions and 1 deletions
|
|
@ -2340,7 +2340,7 @@ std::string_view EvalState::forceStringNoCtx(Value & v, const PosIdx pos, std::s
|
||||||
error<EvalError>(
|
error<EvalError>(
|
||||||
"the string '%1%' is not allowed to refer to a store path (such as '%2%')",
|
"the string '%1%' is not allowed to refer to a store path (such as '%2%')",
|
||||||
v.string_view(),
|
v.string_view(),
|
||||||
*v.context()->begin())
|
(*v.context()->begin())->view())
|
||||||
.withTrace(pos, errorCtx)
|
.withTrace(pos, errorCtx)
|
||||||
.debugThrow();
|
.debugThrow();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue