Skip to content

Commit

Permalink
set event message to error message if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
rubvs committed Aug 19, 2024
1 parent f8865c4 commit 0522131
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions model/modelprocessor/errormessage.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ func (s SetErrorMessage) ProcessBatch(ctx context.Context, b *modelpb.Batch) err
event := (*b)[i]
if event.Error != nil {
event.Error.Message = s.setErrorMessage(event)
if event.GetMessage() == "" {
event.Message = event.Error.Message
}
}
}
return nil
Expand Down

0 comments on commit 0522131

Please sign in to comment.