File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
olp-cpp-sdk-authentication/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ client::CancellationToken AuthenticationClient::Impl::SignInClient(
280280 auto time_callback = [=](TimeResponse response) mutable {
281281 if (!response.IsSuccessful ()) {
282282 callback (AuthenticationError (
283- static_cast <int >(response.GetError ().GetErrorCode ()),
283+ static_cast <int >(response.GetError ().GetHttpStatusCode ()),
284284 response.GetError ().GetMessage ()));
285285 return ;
286286 }
@@ -426,7 +426,7 @@ client::CancellationToken AuthenticationClient::Impl::GetTimeFromServer(
426426 [callback, payload](const http::NetworkResponse& network_response) {
427427 if (network_response.GetStatus () != http::HttpStatusCode::OK) {
428428 callback (
429- client::ApiError (network_response.GetStatus ()));
429+ client::ApiError (network_response.GetStatus (), network_response. GetError () ));
430430 return ;
431431 }
432432
You can’t perform that action at this time.
0 commit comments