From a5eba9a354e5e2d382a3bc1eac9be0e72a48884f Mon Sep 17 00:00:00 2001 From: Sergei Zimmerman Date: Tue, 11 Nov 2025 04:12:44 +0300 Subject: [PATCH] libexpr: Fix error message in forceStringNoCtx Otherwise it would print the address of the value. --- src/libexpr/eval.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index 71619a9be..8e74316ca 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -2340,7 +2340,7 @@ std::string_view EvalState::forceStringNoCtx(Value & v, const PosIdx pos, std::s error( "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(); }