mirror of
https://github.com/minio/minio.git
synced 2026-02-05 02:10:14 -05:00
Add number of offline disks in quorum errors (#16822)
This commit is contained in:
@@ -2026,6 +2026,9 @@ func toAPIErrorCode(ctx context.Context, err error) (apiErr APIErrorCode) {
|
||||
return ErrClientDisconnected
|
||||
}
|
||||
|
||||
// Unwrap the error first
|
||||
err = unwrapAll(err)
|
||||
|
||||
switch err {
|
||||
case errInvalidArgument:
|
||||
apiErr = ErrAdminInvalidArgument
|
||||
|
||||
Reference in New Issue
Block a user