Add some error checking to prevent obscure failures.

This commit is contained in:
Brendan Burns
2015-02-10 06:32:26 -08:00
parent e27d534b87
commit e7b11d09de
4 changed files with 4 additions and 0 deletions

View File

@@ -86,6 +86,7 @@ func RunGet(f *Factory, out io.Writer, cmd *cobra.Command, args []string) {
ResourceTypeOrNameArgs(args...).
SingleResourceType().
Do()
checkErr(r.Err())
mapping, err := r.ResourceMapping()
checkErr(err)