Skip to content

Commit

Permalink
Merge pull request #47699 from vvoland/v23.0-47658
Browse files Browse the repository at this point in the history
[23.0 backport] Fix cases where we are wrapping a nil error
  • Loading branch information
vvoland committed Apr 9, 2024
2 parents bed0abf + 8f67ed8 commit ab34280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/logger/local/read.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func getTailReader(ctx context.Context, r loggerutils.SizeReaderAt, req int) (io
}

if msgLen != binary.BigEndian.Uint32(buf) {
return nil, 0, errdefs.DataLoss(errors.Wrap(err, "log message header and footer indicate different message sizes"))
return nil, 0, errdefs.DataLoss(errors.New("log message header and footer indicate different message sizes"))
}

found++
Expand Down

0 comments on commit ab34280

Please sign in to comment.