Add missing validation for replication API conditions (#10114)

This commit is contained in:
poornas
2020-07-22 17:39:40 -07:00
committed by GitHub
parent 73890f31af
commit b9be841fd2
5 changed files with 33 additions and 4 deletions

View File

@@ -369,6 +369,13 @@ func (e BucketReplicationTargetNotFound) Error() string {
return "Replication target not found: " + e.Bucket
}
// BucketReplicationTargetNotVersioned replication target does not have versioning enabled.
type BucketReplicationTargetNotVersioned GenericError
func (e BucketReplicationTargetNotVersioned) Error() string {
return "Replication target does not have versioning enabled: " + e.Bucket
}
/// Bucket related errors.
// BucketNameInvalid - bucketname provided is invalid.