Add number of offline disks in quorum errors (#16822)

This commit is contained in:
Anis Eleuch
2023-05-25 17:39:06 +01:00
committed by GitHub
parent 443250d135
commit 54c5c88fe6
10 changed files with 49 additions and 38 deletions

View File

@@ -31,9 +31,14 @@ func toObjectErr(err error, params ...string) error {
if err == nil {
return nil
}
if errors.Is(err, context.Canceled) {
// Unwarp the error first
err = unwrapAll(err)
if err == context.Canceled {
return context.Canceled
}
switch err.Error() {
case errVolumeNotFound.Error():
apiErr := BucketNotFound{}