Skip to content

Commit

Permalink
Merge pull request #86 from future-architect/fix-issue-84
Browse files Browse the repository at this point in the history
Fix error msg when go-cve-dictionary is unavailable #84
  • Loading branch information
kotakanbe committed Jun 1, 2016
2 parents f8a8cc4 + 3190b87 commit 9126454
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ func (p *ScanCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{})
}

if ok, err := cveapi.CveClient.CheckHealth(); !ok {
Log.Errorf("CVE HTTP server is not running. %#v", cveapi.CveClient)
Log.Fatal(err)
Log.Errorf("CVE HTTP server is not running. err: %s", err)
Log.Errorf("Run go-cve-dictionary as server mode or specify -cve-dictionary-dbpath option")
return subcommands.ExitFailure
}

Expand Down

0 comments on commit 9126454

Please sign in to comment.