mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
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:
parent
5563951887
commit
b53ae95e84
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user