Skip to content

Commit

Permalink
error for no results from xray graph scan in sbom-enrich should be mo…
Browse files Browse the repository at this point in the history
…re generic (not always its file problems) (#113)
  • Loading branch information
barv-jfrog authored Jul 22, 2024
1 parent 9c18eff commit b515d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/enrich/enrich.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func AppendVulnsToXML(results *utils.Results) error {

func isXML(scaResults []*utils.ScaScanResult) (bool, error) {
if len(scaResults) == 0 {
return false, errors.New("unable to retrieve file")
return false, errors.New("unable to retrieve results")
}
fileName := scaResults[0].Target
var x interface{}
Expand Down

0 comments on commit b515d54

Please sign in to comment.