mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
Add number of offline disks in quorum errors (#16822)
This commit is contained in:
@@ -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{}
|
||||
|
||||
Reference in New Issue
Block a user