fix: add proper errors for disks with preexisting content (#9703)

This commit is contained in:
Harshavardhana
2020-05-26 09:32:33 -07:00
committed by GitHub
parent 5e15b0b844
commit d0ae69087c
3 changed files with 16 additions and 7 deletions

View File

@@ -181,6 +181,12 @@ Example 1:
"",
)
ErrCorruptedBackend = newErrFn(
"Unable to use the specified backend, pre-existing content detected",
"Please ensure your disk mount does not have any pre-existing content",
"",
)
ErrUnableToWriteInBackend = newErrFn(
"Unable to write to the backend",
"Please ensure MinIO binary has write permissions for the backend",