modify the example part of missingResourceError

"missingResourceError" is a generic error for kubectl, so we should
not use concrete examples in the error message.
This commit is contained in:
Cao Shufeng
2017-05-16 09:37:37 +08:00
parent 5563951887
commit b53ae95e84

View File

@@ -84,8 +84,8 @@ var missingResourceError = fmt.Errorf(`You must provide one or more resources by
Example resource specifications include: Example resource specifications include:
'-f rsrc.yaml' '-f rsrc.yaml'
'--filename=rsrc.json' '--filename=rsrc.json'
'pods my-pod' '<resource> <name>'
'services'`) '<resource>'`)
// TODO: expand this to include other errors. // TODO: expand this to include other errors.
func IsUsageError(err error) bool { func IsUsageError(err error) bool {