fix error handling

This commit is contained in:
ymqytw 2016-10-14 14:54:57 -07:00
parent 84f5d1c405
commit af1ee9e6b3

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)
if err != nil {
return err
}
clientConfig, err := f.ClientConfig()
if err != nil {