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:
'-f rsrc.yaml'
'--filename=rsrc.json'
'pods my-pod'
'services'`)
'<resource> <name>'
'<resource>'`)
// TODO: expand this to include other errors.
func IsUsageError(err error) bool {