fix(contrib/future-vuls) output detail of loading toml error (#1741)

This commit is contained in:
sadayuki-matsuno
2023-09-24 21:45:33 +09:00
committed by GitHub
parent 70fd968910
commit 048e204b33

View File

@@ -73,7 +73,7 @@ func AddCpe(token, outputFile, proxy string) (err error) {
func (c *AddCpeConfig) LoadAndCheckTomlFile(ctx context.Context) (needAddServers, needAddCpes config.DiscoverToml, err error) {
var discoverToml config.DiscoverToml
if _, err = toml.DecodeFile(c.DiscoverTomlPath, &discoverToml); err != nil {
return nil, nil, fmt.Errorf("failed to read discover toml: %s", c.DiscoverTomlPath)
return nil, nil, fmt.Errorf("failed to read discover toml: %s, err: %v", c.DiscoverTomlPath, err)
}
c.OriginalDiscoverToml = discoverToml