mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Stop checking a Provider Metadata if it could not be parsed
This commit is contained in:
parent
02d476360b
commit
3eced62af6
1 changed files with 9 additions and 6 deletions
|
|
@ -231,13 +231,16 @@ func (p *processor) run(domains []string) (*Report, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, d := range domains {
|
for _, d := range domains {
|
||||||
if p.checkProviderMetadata(d) {
|
if !p.checkProviderMetadata(d) {
|
||||||
if err := p.checkDomain(d); err != nil {
|
// We cannot build a report if the provider metadata cannot be parsed.
|
||||||
if err == errContinue || err == errStop {
|
log.Printf("Could not parse the Provider-Metadata.json of %s", d)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
return nil, err
|
if err := p.checkDomain(d); err != nil {
|
||||||
|
if err == errContinue || err == errStop {
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
|
return nil, err
|
||||||
}
|
}
|
||||||
domain := &Domain{Name: d}
|
domain := &Domain{Name: d}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue