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