Make great documentation goal 1.2, and plan the README's reorganisation and the nested-template gaps #33

Open
lilleman wants to merge 966 commits from worktree-todo-relative-dates-exact-counts into main
Showing only changes of commit d943bdca16 - Show all commits
+8 -4
View File
@@ -356,9 +356,13 @@ func alternatives(a, b surveyAt) bool {
} }
func overlapError(route surveyRoute, ref string, into pathRead) error { func overlapError(route surveyRoute, ref string, into pathRead) error {
apart := fmt.Sprintf("move {%s} into a field with a drawGroup", into.a.spelling) apart := ""
if into.a.spelling != into.at.route.label { switch {
apart = fmt.Sprintf("give %s a drawGroup", into.at.route.spelling) case route.spelling == into.at.route.spelling:
case isRef(into.at.route.label):
apart = fmt.Sprintf(", or move {%s} into a field with a drawGroup", into.at.route.label)
default:
apart = fmt.Sprintf(", or 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) return fmt.Errorf("%s renders its own draw of what %s reads a path through; name the fields you want instead%s", route.spelled(ref), into.at.route.spelled(into.a.spelling), apart)
} }