Skip to content

Commit

Permalink
templatize error message in DeleteOptions
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Kriss <steve@heptio.com>
  • Loading branch information
skriss committed Oct 5, 2018
1 parent 1da3278 commit 0612c5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/cli/delete_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0612c5d

Please sign in to comment.