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

Add path of offending security.txt to error message since now multiple paths are checked

This commit is contained in:
JanHoefelmeyer 2023-11-14 07:55:53 +01:00
parent 0a2b69bd55
commit e27d64e42c

View file

@ -1273,7 +1273,9 @@ func (p *processor) checkSecurity(domain string) string {
if msg == "" {
break
}
msgs = append(msgs, msg)
// Show which security.txt caused this message
lmsg := folder + "security.txt:" + msg
msgs = append(msgs, lmsg)
}
return strings.Join(msgs, "; ")
}