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:
parent
dd48fc8b6c
commit
de738d2c56
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue