Skip to content

Commit

Permalink
Merge pull request #332 from kazuminn/add-err-handling
Browse files Browse the repository at this point in the history
add error handling
  • Loading branch information
kotakanbe authored Feb 16, 2017
2 parents d6f72ac + e7ec5b8 commit a6f0c55
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions commands/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a6f0c55

Please sign in to comment.