Commit cd7d78b696 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 cd7d78b696 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
}
This commit is contained in:
Jan Chaloupka 2015-09-09 12:02:22 +02:00
parent 7e51e6abf7
commit 70c74fbe4b

View File

@ -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
}