1
0
mirror of https://github.com/minio/mc.git synced 2025-07-06 20:56:40 +03:00

mirror: Deprecate --force instead add --overwrite (#2318)

Fixes #2317
This commit is contained in:
Harshavardhana
2017-11-30 03:21:17 -08:00
committed by Nitish Tiwari
parent a63a1f7eca
commit dfffc1e7cc
5 changed files with 70 additions and 48 deletions

View File

@ -69,12 +69,13 @@ var (
}
errOverWriteNotAllowed = func(URL string) *probe.Error {
return probe.NewError(errors.New("Overwrite not allowed for `" + URL + "`. Use `--force` to override this behavior."))
return probe.NewError(errors.New("Overwrite not allowed for `" + URL + "`. Use `--overwrite` to override this behavior."))
}
errDeleteNotAllowed = func(URL string) *probe.Error {
return probe.NewError(errors.New("Delete not allowed for `" + URL + "`. Use `--force` to override this behavior."))
return probe.NewError(errors.New("Delete not allowed for `" + URL + "`. Use `--remove` to override this behavior."))
}
errSourceIsDir = func(URL string) *probe.Error {
return probe.NewError(errors.New("Source `" + URL + "` is a folder.")).Untrace()
}