Skip to content

Commit a820053

Browse files
committed
Remove unused header files
1 parent 76b8ac3 commit a820053

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

eventstream_rpc/source/EventStreamClient.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include <string.h>
1313

1414
#include <algorithm>
15-
#include <iostream>
1615

1716
constexpr auto EVENTSTREAM_VERSION_HEADER = ":version";
1817
constexpr auto EVENTSTREAM_VERSION_STRING = "0.1.0";
@@ -1268,6 +1267,13 @@ namespace Aws
12681267
m_operationModelContext.AllocateOperationErrorFromPayload(modelName, payloadStringView, m_allocator);
12691268
if (error.get() == nullptr)
12701269
return EVENT_STREAM_RPC_UNMAPPED_DATA;
1270+
if (error->GetMessage().has_value())
1271+
{
1272+
AWS_LOGF_ERROR(
1273+
AWS_LS_EVENT_STREAM_RPC_CLIENT,
1274+
"An error was received from the server: %s",
1275+
error->GetMessage().value().c_str());
1276+
}
12711277
TaggedResult taggedResult(std::move(error));
12721278
if (m_messageCount == 1)
12731279
{

eventstream_rpc/tests/include/awstest/EchoTestRpcModel.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ namespace Awstest
621621
}
622622

623623
/**
624-
* A callback that is invoked upon receiving an error response from the server.
624+
* A callback that is invoked upon receiving ANY error response from the server.
625625
* @param operationError The error message being received.
626626
*/
627627
virtual bool OnStreamError(OperationError *operationError)
@@ -724,7 +724,7 @@ namespace Awstest
724724
}
725725

726726
/**
727-
* A callback that is invoked upon receiving an error response from the server.
727+
* A callback that is invoked upon receiving ANY error response from the server.
728728
* @param operationError The error message being received.
729729
*/
730730
virtual bool OnStreamError(OperationError *operationError)

greengrass_ipc/include/aws/greengrass/GreengrassCoreIpcModel.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2340,7 +2340,7 @@ namespace Aws
23402340
}
23412341

23422342
/**
2343-
* A callback that is invoked upon receiving an error response from the server.
2343+
* A callback that is invoked upon receiving ANY error response from the server.
23442344
* @param operationError The error message being received.
23452345
*/
23462346
virtual bool OnStreamError(OperationError *operationError)
@@ -2524,7 +2524,7 @@ namespace Aws
25242524
}
25252525

25262526
/**
2527-
* A callback that is invoked upon receiving an error response from the server.
2527+
* A callback that is invoked upon receiving ANY error response from the server.
25282528
* @param operationError The error message being received.
25292529
*/
25302530
virtual bool OnStreamError(OperationError *operationError)
@@ -2766,7 +2766,7 @@ namespace Aws
27662766
}
27672767

27682768
/**
2769-
* A callback that is invoked upon receiving an error response from the server.
2769+
* A callback that is invoked upon receiving ANY error response from the server.
27702770
* @param operationError The error message being received.
27712771
*/
27722772
virtual bool OnStreamError(OperationError *operationError)
@@ -2965,7 +2965,7 @@ namespace Aws
29652965
}
29662966

29672967
/**
2968-
* A callback that is invoked upon receiving an error response from the server.
2968+
* A callback that is invoked upon receiving ANY error response from the server.
29692969
* @param operationError The error message being received.
29702970
*/
29712971
virtual bool OnStreamError(OperationError *operationError)
@@ -3980,7 +3980,7 @@ namespace Aws
39803980
}
39813981

39823982
/**
3983-
* A callback that is invoked upon receiving an error response from the server.
3983+
* A callback that is invoked upon receiving ANY error response from the server.
39843984
* @param operationError The error message being received.
39853985
*/
39863986
virtual bool OnStreamError(OperationError *operationError)

0 commit comments

Comments
 (0)