mirror of
https://github.com/pgsty/minio.git
synced 2026-03-12 06:06:45 +01:00
To avoid returning 5xx error from MinIO server and show a better error message, we need to return ErrInvalidAccessKeyLength and ErrInvalidSecretKeyLength when attempting to create a new credentials with invalid access or secret keys. Signed-off-by: Anis Elleuch <anis@min.io> Co-authored-by: Anis Elleuch <anis@min.io>