mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
disconnected returns, an unexpected error to List() returning 500s (#18959)
provide the error string appropriately so that the matching of error types works. Also add a string based fallback for the said error.
This commit is contained in:
@@ -148,6 +148,8 @@ func toStorageErr(err error) error {
|
||||
return errDiskOngoingReq
|
||||
case grid.ErrUnknownHandler.Error():
|
||||
return errInconsistentDisk
|
||||
case grid.ErrDisconnected.Error():
|
||||
return errDiskNotFound
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user