Merge pull request #34862 from ymqytw/fix_edit_panic

Automatic merge from submit-queue

fix error handling

Add missing error handling mentioned in [#33250 Comment](https://github.com/kubernetes/kubernetes/pull/33250#issuecomment-253920315)
@janetkuo
This commit is contained in:
Kubernetes Submit Queue 2016-10-14 23:30:15 -07:00 committed by GitHub
commit c0fea2a1e2

View File

@ -129,6 +129,9 @@ func RunEdit(f cmdutil.Factory, out, errOut io.Writer, cmd *cobra.Command, args
} }
mapper, resourceMapper, r, cmdNamespace, err := getMapperAndResult(f, args, options) mapper, resourceMapper, r, cmdNamespace, err := getMapperAndResult(f, args, options)
if err != nil {
return err
}
clientConfig, err := f.ClientConfig() clientConfig, err := f.ClientConfig()
if err != nil { if err != nil {