Commit 70c74fbe authored by Jan Chaloupka's avatar Jan Chaloupka

Commit cd7d78b6 replaced use of

util.CheckErr(err) with if err != nil { return err } One replacement is incorrent. The current call of resource.NewBuilder is returned in r variable. Which was tested with util.CheckErr(r.Err()) before cd7d78b6 commit. It was replaced by if err != nil { return err } which is incorrect as err is not set by resource.NewBuilder call. The correct use is err := r.Err() if err != nil { return err }
parent 7e51e6ab
......@@ -130,6 +130,7 @@ func RunGet(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string
SingleResourceType().
Latest().
Do()
err := r.Err()
if err != nil {
return err
}
......
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