Skip to content

Commit

Permalink
New oatpp-Async error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
lganzzzo committed Sep 23, 2019
1 parent 7ec41bb commit 394498d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/ClientSocketListener.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,13 @@ class ClientCoroutine : public oatpp::async::Coroutine<ClientCoroutine> {
return finish();
}

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

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

};
Expand Down

0 comments on commit 394498d

Please sign in to comment.