From 6a049895a008894aaf3092f2ec5f2295e43a4e84 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 9 Oct 2026 11:14:26 +0200 Subject: [PATCH] Answer stability round 1: a row selected through a name hints the path as the grammar spells it --- arm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arm.go b/arm.go index 926c1ea..2ae4971 100644 --- a/arm.go +++ b/arm.go @@ -100,7 +100,7 @@ func (t *template) compileArm(name string, targets map[*nameBinding]nameTarget) } b := t.nameScope.lookup(a.head) if grammar.HasSelector(a.tail) { - return a, fmt.Errorf("a path through name %q may not select a row; read it directly, {%s.%s}, or bind the row to a name of its own", a.head, b.ref, grammar.JoinSegments(a.tail)) + return a, fmt.Errorf("a path through name %q may not select a row; read it directly, {%s}, or bind the row to a name of its own", a.head, grammar.JoinSegments(append([]string{b.ref}, a.tail...))) } target := targets[b] full := append(target.tail[:len(target.tail):len(target.tail)], a.tail...)