From 1551087ddf0742082939ad5380c5d9d8c799e02f Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Mon, 5 Oct 2026 00:09:06 +0200 Subject: [PATCH] Answer architecture round 2: say the suggested path starts at the data root --- path.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/path.go b/path.go index 6247c82..f388da4 100644 --- a/path.go +++ b/path.go @@ -233,7 +233,7 @@ func (t *table) stepUp(rest []string) error { case len(rest) == 0 || rest[0] != t.parentT.segment: return fmt.Errorf(`".." steps up from %s to its parent table, so name that next: ..%s`, t.segment, t.parentT.segment) case hasSelector(rest): - return fmt.Errorf(`a path selects its rows before a "..", since a row selected after it could lie outside the row it steps up to; select from the table instead: %s`, joinSegments(append([]string{t.parentT.path}, rest[1:]...))) + return fmt.Errorf(`a path selects its rows before a "..", since a row selected after it could lie outside the row it steps up to; select from the table instead, its path from the data root: %s`, joinSegments(append([]string{t.parentT.path}, rest[1:]...))) } return nil }