@@ -155,14 +155,14 @@ class ClientCoroutine_getRootAsync : public oatpp::async::Coroutine<ClientCorout
155
155
return finish ();
156
156
}
157
157
158
- Action handleError (const std::shared_ptr< const Error>& error) override {
158
+ Action handleError (Error* error) override {
159
159
if (error->is <oatpp::data::AsyncIOError>()) {
160
- auto e = static_cast <const oatpp::data::AsyncIOError*>(error. get () );
160
+ auto e = static_cast <oatpp::data::AsyncIOError*>(error);
161
161
OATPP_LOGD (" [FullAsyncClientTest::ClientCoroutine_echoBodyAsync::handleError()]" , " AsyncIOError. %s, %d" , e->what (), e->getCode ());
162
162
} else {
163
163
OATPP_LOGD (" [FullAsyncClientTest::ClientCoroutine_echoBodyAsync::handleError()]" , " Error. %s" , error->what ());
164
164
}
165
- return propagateError () ;
165
+ return error ;
166
166
}
167
167
168
168
};
@@ -200,16 +200,16 @@ class ClientCoroutine_echoBodyAsync : public oatpp::async::Coroutine<ClientCorou
200
200
return finish ();
201
201
}
202
202
203
- Action handleError (const std::shared_ptr< const Error>& error) override {
203
+ Action handleError (Error* error) override {
204
204
if (error) {
205
205
if (error->is <oatpp::data::AsyncIOError>()) {
206
- auto e = static_cast <const oatpp::data::AsyncIOError*>(error. get () );
206
+ auto e = static_cast <oatpp::data::AsyncIOError*>(error);
207
207
OATPP_LOGD (" [FullAsyncClientTest::ClientCoroutine_echoBodyAsync::handleError()]" , " AsyncIOError. %s, %d" , e->what (), e->getCode ());
208
208
} else {
209
209
OATPP_LOGD (" [FullAsyncClientTest::ClientCoroutine_echoBodyAsync::handleError()]" , " Error. %s" , error->what ());
210
210
}
211
211
}
212
- return propagateError () ;
212
+ return error ;
213
213
}
214
214
215
215
};
0 commit comments