mirror of
https://github.com/minio/minio.git
synced 2025-11-09 21:49:46 -05:00
Incorrect error message for insufficient volume fix (#6099)
Reply back with appropriate error message when the server is spawn with volume of insufficient size (< 1GiB). Fixes #5993.
This commit is contained in:
committed by
kannappanr
parent
8bd7a19d50
commit
ea76e72054
@@ -112,6 +112,9 @@ func NewFSObjectLayer(fsPath string) (ObjectLayer, error) {
|
||||
|
||||
var err error
|
||||
if fsPath, err = getValidPath(fsPath); err != nil {
|
||||
if err == errMinDiskSize {
|
||||
return nil, err
|
||||
}
|
||||
return nil, uiErrUnableToWriteInBackend(err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user