Add code to translate errInvalidEncryptionParameters to APIErrcode (#6625)

Fixes #6623
This commit is contained in:
kannappanr
2018-10-16 12:27:34 -07:00
committed by Dee Koder
parent b8bd8d6a03
commit c7f180ffa9
2 changed files with 3 additions and 1 deletions

View File

@@ -1441,6 +1441,8 @@ func toAPIErrorCode(err error) (apiErr APIErrorCode) {
case auth.ErrInvalidSecretKeyLength:
apiErr = ErrAdminInvalidSecretKey
// SSE errors
case errInvalidEncryptionParameters:
apiErr = ErrInvalidEncryptionParameters
case crypto.ErrInvalidEncryptionMethod:
apiErr = ErrInvalidEncryptionMethod
case errInsecureSSERequest: