Merge pull request #332 from kazuminn/add-err-handling

add error handling
This commit is contained in:
Kota Kanbe
2017-02-16 18:06:59 +09:00
committed by GitHub

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 {