check: fix the checking of a hierarchy

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2016-04-05 16:20:04 -04:00
parent b7724b906b
commit 05f9b75a19
4 changed files with 11 additions and 2 deletions

View file

@ -99,6 +99,7 @@ func main() {
return
}
if res != nil && len(res.Failures) > 0 {
defer os.Exit(1)
for _, failure := range res.Failures {
fmt.Println(failure)
}