From: Lukasz Bardeli Date: Wed, 6 Jul 2016 10:44:15 +0000 (+0200) Subject: [NBS] Add printing error value from native API X-Git-Tag: submit/tizen/20160706.123829~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef2e85733e0ca2eb09b2dd415b888cc555239277;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [NBS] Add printing error value from native API Change-Id: I3fafebf373b99eb68945d3a215d3c7bfdd6ff0b3 Signed-off-by: Lukasz Bardeli --- diff --git a/src/networkbearerselection/networkbearerselection_manager.cc b/src/networkbearerselection/networkbearerselection_manager.cc index 7a1b81c4..c77a37af 100644 --- a/src/networkbearerselection/networkbearerselection_manager.cc +++ b/src/networkbearerselection/networkbearerselection_manager.cc @@ -211,11 +211,13 @@ void NetworkBearerSelectionManager::requestRouteToHost( destroyProfileHandle(); - if (connection_get_default_cellular_service_profile( - m_connection_handle_, - CONNECTION_CELLULAR_SERVICE_TYPE_INTERNET, - &m_profile_handle_) != CONNECTION_ERROR_NONE) { - LoggerE("Fail to get profile handle"); + int ret = connection_get_default_cellular_service_profile( + m_connection_handle_, + CONNECTION_CELLULAR_SERVICE_TYPE_INTERNET, + &m_profile_handle_); + + if (ret != CONNECTION_ERROR_NONE) { + LoggerE("Fail to get profile handle. %d", ret); makeErrorCallback(domain_name, kPlatformError); return; }