Merge pull request #47658 from cpuguy83/fix_error_wrap_local_logs
Fix cases where we are wrapping a nil error
This commit is contained in:
commit
8599f2a3fb
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ func getTailReader(ctx context.Context, r loggerutils.SizeReaderAt, req int) (io
|
||||||
}
|
}
|
||||||
|
|
||||||
if msgLen != binary.BigEndian.Uint32(buf) {
|
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++
|
found++
|
||||||
|
|
Loading…
Reference in a new issue