fix: avoid printing certain errors under few locations (#16631)

This commit is contained in:
Harshavardhana
2023-02-17 01:40:31 -08:00
committed by GitHub
parent a7188bc9d0
commit 6ea150fd68
5 changed files with 22 additions and 19 deletions

View File

@@ -316,11 +316,11 @@ func (z *erasureServerPools) listMerged(ctx context.Context, o listPathOptions,
}
for _, err := range errs {
if err == nil || contextCanceled(ctx) {
allAtEOF = false
if errors.Is(err, io.EOF) {
continue
}
if err.Error() == io.EOF.Error() {
if err == nil || contextCanceled(ctx) || errors.Is(err, context.Canceled) {
allAtEOF = false
continue
}
logger.LogIf(ctx, err)