mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 13:14:05 +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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user