Merge pull request #911 from skriss/874-followup

templatize error message in DeleteOptions
This commit is contained in:
Nolan Brubaker
2018-10-05 16:06:51 -04:00
committed by GitHub

View File

@@ -71,7 +71,7 @@ func (o *DeleteOptions) Validate(c *cobra.Command, f client.Factory, args []stri
hasSelector = o.Selector.LabelSelector != nil
)
if !xor(hasNames, hasAll, hasSelector) {
return errors.New("you must specify exactly one of: specific restore name(s), the --all flag, or the --selector flag")
return errors.New("you must specify exactly one of: specific " + o.singularTypeName + " name(s), the --all flag, or the --selector flag")
}
return nil