mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 04:30:26 +03:00
Add number of offline disks in quorum errors (#16822)
This commit is contained in:
@@ -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