Skip to content

Commit e190dc4

Browse files
author
Bret Ambrose
committed
No longer require message field in XML-based error parsing
1 parent 487617a commit e190dc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws-cpp-sdk-core/source/client/AWSClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ AWSError<CoreErrors> AWSXMLClient::BuildAWSError(const std::shared_ptr<Http::Htt
598598
XmlNode codeNode = errorNode.FirstChild("Code");
599599
XmlNode messageNode = errorNode.FirstChild("Message");
600600

601-
if (!(codeNode.IsNull() || messageNode.IsNull()))
601+
if (!codeNode.IsNull())
602602
{
603603
error = GetErrorMarshaller()->Marshall(StringUtils::Trim(codeNode.GetText().c_str()),
604604
StringUtils::Trim(messageNode.GetText().c_str()));

0 commit comments

Comments
 (0)