Commit af1ee9e6 authored by ymqytw's avatar ymqytw

fix error handling

parent 84f5d1c4
...@@ -129,6 +129,9 @@ func RunEdit(f cmdutil.Factory, out, errOut io.Writer, cmd *cobra.Command, args ...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment