Last active
March 28, 2022 00:14
-
-
Save leodido/e966f1ad23c7971c1884555814e99204 to your computer and use it in GitHub Desktop.
Patch for building AWS SDK C++ with gcc 11 (fix landed Nov 4th, 2021)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/aws-cpp-sdk-core/source/utils/event/EventStreamDecoder.cpp b/aws-cpp-sdk-core/source/utils/event/EventStreamDecoder.cpp | |
index f70a6c88f6..e09a4e0ee6 100644 | |
--- a/aws-cpp-sdk-core/source/utils/event/EventStreamDecoder.cpp | |
+++ b/aws-cpp-sdk-core/source/utils/event/EventStreamDecoder.cpp | |
@@ -72,9 +72,7 @@ namespace Aws | |
assert(handler); | |
if (!handler) | |
{ | |
- AWS_LOGSTREAM_ERROR(EVENT_STREAM_DECODER_CLASS_TAG, "Payload received, but decoder encountered internal errors before." | |
- "ErrorCode: " << EventStreamErrorsMapper::GetNameForError(handler->GetInternalError()) << ", " | |
- "ErrorMessage: " << handler->GetEventPayloadAsString()); | |
+ AWS_LOGSTREAM_ERROR(EVENT_STREAM_DECODER_CLASS_TAG, "Payload received, but handler is null."); | |
return; | |
} | |
handler->WriteMessageEventPayload(static_cast<unsigned char*>(payload->buffer), payload->len); | |
@@ -129,9 +127,7 @@ namespace Aws | |
assert(handler); | |
if (!handler) | |
{ | |
- AWS_LOGSTREAM_ERROR(EVENT_STREAM_DECODER_CLASS_TAG, "Payload received, but decoder encountered internal errors before." | |
- "ErrorCode: " << EventStreamErrorsMapper::GetNameForError(handler->GetInternalError()) << ", " | |
- "ErrorMessage: " << handler->GetEventPayloadAsString()); | |
+ AWS_LOGSTREAM_ERROR(EVENT_STREAM_DECODER_CLASS_TAG, "Payload received, but handler is null."); | |
return; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment