Fix README, change -cvedbpath to -cve-dictionary-dbpath #84

This commit is contained in:
kota kanbe
2016-06-01 09:17:20 +09:00
parent b45163388d
commit 93ee329315
4 changed files with 38 additions and 23 deletions

View File

@@ -144,7 +144,7 @@ func (api cvedictClient) FetchCveDetailsFromCveDB(cveIDs []string) (cveDetails c
log.Debugf("open cve-dictionary db")
if err := cvedb.OpenDB(); err != nil {
return []cve.CveDetail{},
fmt.Errorf("go-cve-dictionary:OpenDB Error: %v", err)
fmt.Errorf("Failed to open DB. err: %s", err)
}
for _, cveID := range cveIDs {
cveDetail := cvedb.Get(cveID)