kubernetes/pkg/kubectl/resource
k8s-merge-robot 721eabf492 Merge pull request #28626 from juanvallejo/update-resource-builder-format-error
Automatic merge from submit-queue

update resource builder error message to be more clear

release-note-none

The error message given by command line `kubectl get` is sometimes of no help / not clear on what must be corrected, e.g.:
`kubectl get pod pod/database-1-i10b9`
error: when passing arguments in resource/name form, all arguments must include the resource 

##### Steps to Reproduce:
1. Run command "$ kubectl get pod pod/database-1-i10b9"  

##### Actual Result:
Get unfriendly error message which is of no help:
"error: when passing arguments in resource/name form, all arguments must include the resource"

##### Expected Result:
Error message should recommend end user to run this cli in good grammar: "$ kubectl get pod database-1-i10b9" or "$ kubectl get pod/database-1-i10b9"

##### Before
"error: when passing arguments in resource/name form, all arguments must include the resource"

##### After
"error: there is no need to specify a resource type as a separate argument when passing arguments in resource/name form (e.g. `kubectl get resource/<resource_name>` instead of `kubectl get resource resource/<resource_name>`"

[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
2016-07-13 14:42:02 -07:00
..
builder_test.go Merge pull request #28626 from juanvallejo/update-resource-builder-format-error 2016-07-13 14:42:02 -07:00
builder.go update resource builder error message to be more clear 2016-07-07 16:32:26 -04:00
doc.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
helper_test.go Remove Codec from ContentConfig. 2016-07-08 13:53:09 +02:00
helper.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
interfaces.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
mapper.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
result.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
selector.go Merge pull request #27243 from smarterclayton/dont_alter_error 2016-07-11 16:42:08 -07:00
visitor_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
visitor.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00