Update Client.cpp

This commit is contained in:
Alexey Milovidov 2024-01-19 06:12:44 +03:00 committed by GitHub
parent b3d74fc907
commit 370815803e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -115,7 +115,7 @@ void validateCredentials(const Aws::Auth::AWSCredentials& auth_credentials)
/// Follow https://docs.aws.amazon.com/IAM/latest/APIReference/API_AccessKey.html
if (!std::all_of(auth_credentials.GetAWSAccessKeyId().begin(), auth_credentials.GetAWSAccessKeyId().end(), isWordCharASCII))
{
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Access key id has invalid character");
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Access key id has an invalid character");
}
}