From e7e1918b11f368cb7179a4b339ab81dcf1ff9bac Mon Sep 17 00:00:00 2001 From: Maciej Szulik Date: Wed, 30 May 2018 16:16:19 +0200 Subject: [PATCH] Fix error message to be consistent with others --- pkg/kubectl/cmd/apiresources.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/kubectl/cmd/apiresources.go b/pkg/kubectl/cmd/apiresources.go index dadc13d8a25..982bbb02fea 100644 --- a/pkg/kubectl/cmd/apiresources.go +++ b/pkg/kubectl/cmd/apiresources.go @@ -34,7 +34,7 @@ import ( ) var ( - apiresources_example = templates.Examples(` + apiresourcesExample = templates.Examples(` # Print the supported API Resources kubectl api-resources @@ -84,7 +84,7 @@ func NewCmdApiResources(f cmdutil.Factory, ioStreams genericclioptions.IOStreams Use: "api-resources", Short: "Print the supported API resources on the server", Long: "Print the supported API resources on the server", - Example: apiresources_example, + Example: apiresourcesExample, Run: func(cmd *cobra.Command, args []string) { cmdutil.CheckErr(o.Validate(cmd)) cmdutil.CheckErr(o.RunApiResources(cmd, f)) @@ -104,7 +104,7 @@ func NewCmdApiResources(f cmdutil.Factory, ioStreams genericclioptions.IOStreams func (o *ApiResourcesOptions) Validate(cmd *cobra.Command) error { supportedOutputTypes := sets.NewString("", "wide", "name") if !supportedOutputTypes.Has(o.Output) { - return fmt.Errorf("--output %v is not available in kubectl api-resources", o.Output) + return fmt.Errorf("--output %v is not available", o.Output) } return nil }