From e7ec5b841dcd9bb849fb81d9802bbff09c63fd2a Mon Sep 17 00:00:00 2001 From: kazuminn Date: Mon, 13 Feb 2017 12:59:56 +0900 Subject: [PATCH] due to miss error handling I fixed it according to the review --- commands/report.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commands/report.go b/commands/report.go index 760ee31d..dbc86ba7 100644 --- a/commands/report.go +++ b/commands/report.go @@ -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 {