From 0612c5de7098c802cc136c2254421846ac60dfcd Mon Sep 17 00:00:00 2001 From: Steve Kriss Date: Fri, 5 Oct 2018 13:24:30 -0600 Subject: [PATCH] templatize error message in DeleteOptions Signed-off-by: Steve Kriss --- pkg/cmd/cli/delete_options.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/cli/delete_options.go b/pkg/cmd/cli/delete_options.go index a8a2d09655..3600cfc03a 100644 --- a/pkg/cmd/cli/delete_options.go +++ b/pkg/cmd/cli/delete_options.go @@ -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