check: populate the Result set

allowing the caller to display the results as desired

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2016-04-05 11:44:55 -04:00
parent 0898fd6d90
commit b7724b906b
2 changed files with 19 additions and 12 deletions

View file

@ -98,8 +98,10 @@ func main() {
isErr = true
return
}
if res != nil {
fmt.Printf("%#v\n", res)
if res != nil && len(res.Failures) > 0 {
for _, failure := range res.Failures {
fmt.Println(failure)
}
}
}
}