From b53ae95e844662b432bebbdc3850e567c2969b8a Mon Sep 17 00:00:00 2001 From: Cao Shufeng Date: Tue, 16 May 2017 09:37:37 +0800 Subject: [PATCH] modify the example part of missingResourceError "missingResourceError" is a generic error for kubectl, so we should not use concrete examples in the error message. --- pkg/kubectl/resource/builder.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/kubectl/resource/builder.go b/pkg/kubectl/resource/builder.go index 75428e7edfc..64940731a2e 100644 --- a/pkg/kubectl/resource/builder.go +++ b/pkg/kubectl/resource/builder.go @@ -84,8 +84,8 @@ var missingResourceError = fmt.Errorf(`You must provide one or more resources by Example resource specifications include: '-f rsrc.yaml' '--filename=rsrc.json' - 'pods my-pod' - 'services'`) + ' ' + ''`) // TODO: expand this to include other errors. func IsUsageError(err error) bool {