Skip to content

Commit

Permalink
fix(contrib/future-vuls) output detail of loading toml error (#1741)
Browse files Browse the repository at this point in the history
  • Loading branch information
sadayuki-matsuno authored Sep 24, 2023
1 parent 70fd968 commit 048e204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/future-vuls/pkg/cpe/cpe.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 048e204

Please sign in to comment.