Skip to content

Commit

Permalink
fix: report error correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
alexec committed Sep 8, 2021
1 parent c3cb97f commit fbae663
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions runner/sidecar/sources.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ func connectSources(ctx context.Context, toMain func(context.Context, []byte) er
for {
select {
case <-ctx.Done():
withLock(func() { step.Status.SourceStatuses.IncrErrors(sourceName, replica) })
return fmt.Errorf("could not send message: %w", ctx.Err())
default:
if uint64(backoff.Steps) < s.Retry.Steps { // this is a retry
Expand Down

0 comments on commit fbae663

Please sign in to comment.