Skip to content

Commit a5eba9a

Browse files
committed
libexpr: Fix error message in forceStringNoCtx
Otherwise it would print the address of the value.
1 parent 295ad5c commit a5eba9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libexpr/eval.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2340,7 +2340,7 @@ std::string_view EvalState::forceStringNoCtx(Value & v, const PosIdx pos, std::s
23402340
error<EvalError>(
23412341
"the string '%1%' is not allowed to refer to a store path (such as '%2%')",
23422342
v.string_view(),
2343-
*v.context()->begin())
2343+
(*v.context()->begin())->view())
23442344
.withTrace(pos, errorCtx)
23452345
.debugThrow();
23462346
}

0 commit comments

Comments
 (0)