Name the reference-draw overlap's disagreement and the read a drawGroup goes on

This commit is contained in:
2026-09-29 14:59:16 +02:00
committed by Lillem4n
parent 68dc2e594a
commit ba8bf06c00
2 changed files with 9 additions and 1 deletions
+5 -1
View File
@@ -356,5 +356,9 @@ func alternatives(a, b surveyAt) bool {
}
func overlapError(route surveyRoute, ref string, into pathRead) error {
return fmt.Errorf("%s and %s share one reference draw, one read whole and one by a path; name the fields you want instead, or draw them apart with a drawGroup", route.spelled(ref), into.at.route.spelled(into.a.spelling))
apart := fmt.Sprintf("move {%s} into a field with a drawGroup", into.a.spelling)
if into.a.spelling != into.at.route.label {
apart = fmt.Sprintf("give %s a drawGroup", into.at.route.spelling)
}
return fmt.Errorf("%s renders its own draw of what %s reads a path through; name the fields you want instead, or %s", route.spelled(ref), into.at.route.spelled(into.a.spelling), apart)
}