Skip to content

Commit

Permalink
better error
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik committed Nov 20, 2023
1 parent 88c7277 commit 53a342b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow/connectors/eventhub/hub_batches.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (h *HubBatches) AddEvent(
if retryForBatchSizeExceed {
// if we are already retrying, then we should just return the error
// as we have already tried to send the event to the batch.
return err
return fmt.Errorf("[retry-failed] event too large to add to batch: %v", err)
}

// if the event is too large, send the current batch and
Expand Down

0 comments on commit 53a342b

Please sign in to comment.