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

@@ -71,6 +71,7 @@ Examples:
ResourceTypeOrNameArgs(args...).
Flatten().
Do()
checkErr(r.Err())
found := 0
err = r.IgnoreErrors(errors.IsNotFound).Visit(func(r *resource.Info) error {