fix: improve error messages returned during replication setup (#13261)

This commit is contained in:
Poorna Krishnamoorthy
2021-09-21 16:03:20 -04:00
committed by GitHub
parent 1fa0553c71
commit 806b10b934
6 changed files with 15 additions and 24 deletions

View File

@@ -1967,8 +1967,6 @@ func toAPIErrorCode(ctx context.Context, err error) (apiErr APIErrorCode) {
apiErr = ErrReplicationConfigurationNotFoundError
case BucketRemoteDestinationNotFound:
apiErr = ErrRemoteDestinationNotFoundError
case BucketReplicationDestinationMissingLock:
apiErr = ErrReplicationDestinationMissingLock
case BucketRemoteTargetNotFound:
apiErr = ErrRemoteTargetNotFoundError
case BucketRemoteConnectionErr: