due to miss error handling

I fixed it according to the review
This commit is contained in:
kazuminn
2017-02-13 12:59:56 +09:00
parent d6f72ac0f3
commit e7ec5b841d

View File

@@ -364,6 +364,10 @@ func (p *ReportCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}
}
history, err := loadOneScanHistory(jsonDir)
if err != nil {
util.Log.Error(err)
return subcommands.ExitFailure
}
var results []models.ScanResult
for _, r := range history.ScanResults {