Skip to content

Commit

Permalink
nit, slightly change the error of the custom annotation enricher to s…
Browse files Browse the repository at this point in the history
…how what was the object that could not be unmarshalled
  • Loading branch information
northdpole committed Oct 11, 2024
1 parent 03ea7f2 commit 4489f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/enrichers/custom-annotation/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4489f0f

Please sign in to comment.