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

Restore output of found value

This commit is contained in:
Sascha L. Teichmann 2022-02-17 10:41:52 +01:00
parent cffc7aaa66
commit 57f43b9d7c

View file

@ -180,7 +180,8 @@ func (c *controller) upload(r *http.Request) (interface{}, error) {
// Extract real TLP from document.
if t == tlpCSAF {
if t = tlp(strings.ToLower(ex.tlpLabel)); !t.valid() || t == tlpCSAF {
return nil, fmt.Errorf("TLP label missing in the document")
return nil, fmt.Errorf(
"valid TLP label missing in document (found '%s')", t)
}
}