Word the second-route and reference-draw overlap refusals apart from the format's own

This commit is contained in:
2026-09-29 14:50:08 +02:00
committed by Lillem4n
parent 487f60c6af
commit 2e57a38e0b
3 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ func checkNameHeld(t *template, name string, readers []reader) error {
continue
}
if path != "" {
return fmt.Errorf("%s renders %q, which {%s} reads a path into; name the fields you want instead", e.reached(), name, path)
return fmt.Errorf("%s reaches %q by a second route, where {%s} holds it to one draw; name the fields you want instead", e.reached(), name, path)
}
return fmt.Errorf("%s renders %q, which a {%s()} also reads; reach it one way so it is drawn once", e.reached(), name, operandReader(t, name))
}