From 54465b54ad93d38481108720495564bcf9c67a18 Mon Sep 17 00:00:00 2001 From: Fadi Abbud Date: Wed, 26 Jan 2022 12:26:13 +0100 Subject: [PATCH] Improve error message of missing tlp * #34 --- cmd/csaf_provider/actions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/csaf_provider/actions.go b/cmd/csaf_provider/actions.go index ccb85d8..652e0dd 100644 --- a/cmd/csaf_provider/actions.go +++ b/cmd/csaf_provider/actions.go @@ -172,7 +172,7 @@ 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("not a valid TL: %s", ex.tlpLabel) + return nil, fmt.Errorf("TLP label missing in the document") } }