From 59bf80ceade35010b507152173bf7894d480e2bc Mon Sep 17 00:00:00 2001 From: sg Date: Fri, 11 Oct 2024 00:10:52 +0100 Subject: [PATCH] nit, slightly change the error of the custom annotation enricher to show what was the object that could not be unmarshalled --- components/enrichers/custom-annotation/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/enrichers/custom-annotation/main.go b/components/enrichers/custom-annotation/main.go index 4068cc0c1..e925f5a8e 100644 --- a/components/enrichers/custom-annotation/main.go +++ b/components/enrichers/custom-annotation/main.go @@ -28,7 +28,7 @@ func enrichIssue(i *apiv1.Issue, annotations string) (*apiv1.EnrichedIssue, erro enrichedIssue := apiv1.EnrichedIssue{} annotationMap := map[string]string{} if err := json.Unmarshal([]byte(annotations), &annotationMap); err != nil { - return nil, errors.Errorf("could not unmarshall annotation object to map[string]string, err: %w", err) + return nil, errors.Errorf("could not unmarshall annotation object %s to map[string]string, err: %w", annotations, err) } enrichedIssue = apiv1.EnrichedIssue{ RawIssue: i,