From 0dee3e01f8a1460fd03858b6bd4fa7baffb794f6 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Mon, 28 Sep 2026 02:55:42 +0200 Subject: [PATCH] Want a fence error to name its category path --- hold_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hold_test.go b/hold_test.go index 5419a42..0decffd 100644 --- a/hold_test.go +++ b/hold_test.go @@ -56,8 +56,8 @@ func TestRenderingALevelAndReadingIntoItIsRejected(t *testing.T) { t.Errorf("%s: New = nil error, want the overlapping tokens rejected", name) continue } - if !strings.Contains(err.Error(), "reads a path into") { - t.Errorf("%s: New = %v, want it to name the overlap", name, err) + if !strings.HasPrefix(err.Error(), "fejkdata: cat: ") || !strings.Contains(err.Error(), "reads a path into") { + t.Errorf("%s: New = %v, want it to name the category path and the overlap", name, err) } } // The same path twice is one spelling, so it stays legal.