Merge pull request #86 from future-architect/fix-issue-84

Fix error msg when go-cve-dictionary is unavailable #84
This commit is contained in:
Kota Kanbe
2016-06-01 09:31:37 +09:00

View File

@@ -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
}