Skip to content

Commit 394498d

Browse files
committed
New oatpp-Async error handling
1 parent 7ec41bb commit 394498d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/src/ClientSocketListener.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,13 @@ class ClientCoroutine : public oatpp::async::Coroutine<ClientCoroutine> {
173173
return finish();
174174
}
175175

176-
Action handleError(const std::shared_ptr<const Error>& error) override {
176+
Action handleError(Error* error) override {
177177
if(error) {
178178
OATPP_LOGD("ClientCoroutine", "Error. %s", error->what());
179179
}
180180

181181
OATPP_ASSERT(false && "handleError - any error in WebSocket communication is considered to be fatal in this benchmark");
182-
return propagateError();
182+
return error;
183183
}
184184

185185
};

0 commit comments

Comments
 (0)