mirror of
https://github.com/minio/minio.git
synced 2026-02-04 18:00:15 -05:00
Add number of offline disks in quorum errors (#16822)
This commit is contained in:
11
cmd/utils.go
11
cmd/utils.go
@@ -1261,3 +1261,14 @@ func MockOpenIDTestUserInteraction(ctx context.Context, pro OpenIDClientAppParam
|
||||
// fmt.Printf("TOKEN: %s\n", rawIDToken)
|
||||
return rawIDToken, nil
|
||||
}
|
||||
|
||||
// unwrapAll will unwrap the returned error completely.
|
||||
func unwrapAll(err error) error {
|
||||
for {
|
||||
werr := errors.Unwrap(err)
|
||||
if werr == nil {
|
||||
return err
|
||||
}
|
||||
err = werr
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user