mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
fix error handling
This commit is contained in:
parent
84f5d1c405
commit
af1ee9e6b3
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user