"group" was confusing, especially because "group" occurs at the
beginning of the error marking the group where the error occurred.
if hosts.Map[x] != nil || groups[x] != nil {
continue
}
- return nil, fmt.Errorf("%s group %q not found",
+ return nil, fmt.Errorf("%s member %q not found",
errPrefix, x)
}
}
&Config{},
&Hosts{},
nil,
- fmt.Errorf("groups.yaml: group \"1group2\": group \"does-not-exist\" not found"),
+ fmt.Errorf("groups.yaml: group \"1group2\": member \"does-not-exist\" not found"),
},
{
"../testdata/group-invalid-name",