From 57f43b9d7c3e6cc1cff48c4fbb9ebb1b727116b1 Mon Sep 17 00:00:00 2001 From: "Sascha L. Teichmann" Date: Thu, 17 Feb 2022 10:41:52 +0100 Subject: [PATCH] Restore output of found value --- cmd/csaf_provider/actions.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/csaf_provider/actions.go b/cmd/csaf_provider/actions.go index 29f07ef..1e4df7d 100644 --- a/cmd/csaf_provider/actions.go +++ b/cmd/csaf_provider/actions.go @@ -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) } }