Fix erroneously "fixed" error message.

This commit is contained in:
Alec Thomas
2018-09-21 13:51:11 +10:00
parent 3a832f8343
commit 25399cde9e
+1 -1
View File
@@ -552,7 +552,7 @@ func checkMissingChildren(node *Node) error {
if len(missing) == 1 {
return fmt.Errorf("expected %s", missing[0])
}
return fmt.Errorf("expected %s", strings.Join(missing, " "))
return fmt.Errorf("expected one of %s", strings.Join(missing, ", "))
}
// If we're missing any positionals and they're required, return an error.