Want a fence error to name its category path

This commit is contained in:
2026-09-28 02:55:42 +02:00
committed by Lillem4n
parent 306b88ef56
commit 0dee3e01f8
+2 -2
View File
@@ -56,8 +56,8 @@ func TestRenderingALevelAndReadingIntoItIsRejected(t *testing.T) {
t.Errorf("%s: New = nil error, want the overlapping tokens rejected", name) t.Errorf("%s: New = nil error, want the overlapping tokens rejected", name)
continue continue
} }
if !strings.Contains(err.Error(), "reads a path into") { 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 overlap", name, err) 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. // The same path twice is one spelling, so it stays legal.