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

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

No files matched your search

+3 -3
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)