1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

Add message to explain a stopped check

* In case of errStop, add a message to show which check aborted the
   others.
This commit is contained in:
Bernhard Reiter 2022-04-21 16:26:11 +02:00
parent dd48fc8b6c
commit de738d2c56
No known key found for this signature in database
GPG key ID: 2B7BA3BF9BC3A554

View file

@ -857,6 +857,7 @@ func (p *processor) checkProviderMetadata(domain string) error {
for _, msg := range errors {
p.badProviderMetadata(strings.ReplaceAll(msg, `%`, `%%`))
}
p.badProviderMetadata("STOPPING here - cannot perfom other checks.")
return errStop
}
p.pmdURL = url
@ -869,6 +870,7 @@ func (p *processor) checkProviderMetadata(domain string) error {
if p.pmdURL == "" {
p.badProviderMetadata("No provider-metadata.json found.")
p.badProviderMetadata("STOPPING here - cannot perfom other checks.")
return errStop
}
return nil