File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
generated/src/aws-cpp-sdk-s3-crt/source
tools/code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/s3/s3-crt Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -687,7 +687,7 @@ void S3CrtClient::S3CrtRequestFinishCallback(struct aws_s3_meta_request* meta_re
687687
688688Aws::Client::XmlOutcome S3CrtClient::GenerateXmlOutcome (const std::shared_ptr<HttpResponse>& response) const {
689689 Aws::Client::HttpResponseOutcome httpOutcome;
690- if (AWSClient::DoesResponseGenerateError (response)) {
690+ if (response-> HasClientError () || AWSClient::DoesResponseGenerateError (response)) {
691691 AWS_LOGSTREAM_DEBUG (ALLOCATION_TAG, " Request returned error. Attempting to generate appropriate error codes from response" );
692692 auto error = BuildAWSError (response);
693693 httpOutcome = HttpResponseOutcome (std::move (error));
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ void S3CrtClient::S3CrtRequestFinishCallback(struct aws_s3_meta_request *meta_re
209209Aws::Client::XmlOutcome S3CrtClient::GenerateXmlOutcome(const std::shared_ptr<HttpResponse>& response) const
210210{
211211 Aws::Client::HttpResponseOutcome httpOutcome;
212- if (AWSClient::DoesResponseGenerateError(response))
212+ if (response->HasClientError() || AWSClient::DoesResponseGenerateError(response))
213213 {
214214 AWS_LOGSTREAM_DEBUG(ALLOCATION_TAG, "Request returned error. Attempting to generate appropriate error codes from response");
215215 auto error = BuildAWSError(response);
You can’t perform that action at this time.
0 commit comments