Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
colmsnowplow committed May 30, 2024
1 parent d9c7f4e commit 93e84fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/transform/transform.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,11 @@ func NewTransformation(tranformFunctions ...TransformationFunction) Transformati
if failure != nil {
failureList = append(failureList, failure)

if failure.Meta == nil {
failure.Meta = make(map[string]interface{})
}
failure.Meta["transformation_error"] = failure.GetError().Error()
metaJSON, err := json.Marshal(filtered.Meta)
metaJSON, err := json.Marshal(failure.Meta)
if err != nil {
fmt.Println("ERROR MARSHALING FILTER META: " + err.Error())
}
Expand Down

0 comments on commit 93e84fe

Please sign in to comment.