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:
parent
cffc7aaa66
commit
57f43b9d7c
1 changed files with 2 additions and 1 deletions
|
|
@ -180,7 +180,8 @@ func (c *controller) upload(r *http.Request) (interface{}, error) {
|
||||||
// Extract real TLP from document.
|
// Extract real TLP from document.
|
||||||
if t == tlpCSAF {
|
if t == tlpCSAF {
|
||||||
if t = tlp(strings.ToLower(ex.tlpLabel)); !t.valid() || 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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue