__session = cynara_session_from_pid(__pid);
char* cid = NULL;
- cynara_creds_gdbus_get_client(conn, busName.c_str(), CLIENT_METHOD_DEFAULT, &cid);
- cynara_creds_gdbus_get_user(conn, busName.c_str(), USER_METHOD_DEFAULT, &__user);
+ int err = -1;
+ err = cynara_creds_gdbus_get_client(conn, busName.c_str(), CLIENT_METHOD_DEFAULT, &cid);
+ if (err != CYNARA_API_SUCCESS)
+ _E("cynara_creds_gdbus_get_client failed - %d", err);
+
+ err = cynara_creds_gdbus_get_user(conn, busName.c_str(), USER_METHOD_DEFAULT, &__user);
+ if (err != CYNARA_API_SUCCESS)
+ _E("cynara_creds_gdbus_get_user failed - %d", err);
_SD("%d, %s, %s, %s", __pid, cid, __session, __user);