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:
 | 
					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 {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user