Name the reference-draw overlap's disagreement and the read a drawGroup goes on
This commit is contained in:
+5
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user