mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Downgrade error to info in directory hash fetching
This commit is contained in:
parent
fc404e499c
commit
a3d6d6acfb
2 changed files with 10 additions and 5 deletions
|
|
@ -776,8 +776,13 @@ func (p *processor) integrity(
|
|||
continue
|
||||
}
|
||||
if res.StatusCode != http.StatusOK {
|
||||
p.badIntegrities.error("Fetching %s failed: Status code %d (%s)",
|
||||
hashFile, res.StatusCode, res.Status)
|
||||
if f.IsDirectory() {
|
||||
p.badIntegrities.info("Fetching %s failed: Status code %d (%s)",
|
||||
hashFile, res.StatusCode, res.Status)
|
||||
} else {
|
||||
p.badIntegrities.error("Fetching %s failed: Status code %d (%s)",
|
||||
hashFile, res.StatusCode, res.Status)
|
||||
}
|
||||
continue
|
||||
}
|
||||
h, err := func() ([]byte, error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue