continue to remove content upon any error (#3383)

This commit is contained in:
Harshavardhana
2020-08-28 08:13:35 -07:00
committed by GitHub
parent 85cce08a85
commit 25a043b508
+1 -7
View File
@@ -167,13 +167,7 @@ func deleteBucket(ctx context.Context, url string) *probe.Error {
}()
for perr := range errorCh {
switch perr.ToGoError().(type) {
case PathInsufficientPermission:
errorIf(perr.Trace(url), "Failed to remove `"+url+"`.")
// Ignore Permission error.
continue
}
return perr
errorIf(perr.Trace(url), "Failed to remove `"+url+"`, continuing..")
}
return nil
}