Change-Id: I99f28e2f3648b64f680c3d6bf571bd5fe4924217
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
ret = privilege_info_get_display_name_string_id_by_pkgtype(package_type, api_version, privilege, &display_name_string_id);
ret = privilege_info_get_display_name_string_id_by_pkgtype(package_type, api_version, privilege, &display_name_string_id);
- if (ret == PRVINFO_ERROR_NO_MATCHING_PRIVILEGE) {
+ if (ret == PRVINFO_ERROR_INVALID_PARAMETER) {
+ return ret;
+ } else if (ret == PRVINFO_ERROR_NO_MATCHING_PRIVILEGE) {
char* tempPrivilege = NULL;
char* token = NULL;
char* temp = NULL;
char* tempPrivilege = NULL;
char* token = NULL;
char* temp = NULL;
ret = privilege_info_get_description_string_id_by_pkgtype(package_type, api_version, privilege, &description_string_id);
ret = privilege_info_get_description_string_id_by_pkgtype(package_type, api_version, privilege, &description_string_id);
- if (ret == PRVINFO_ERROR_NO_MATCHING_PRIVILEGE) {
+ if (ret == PRVINFO_ERROR_INVALID_PARAMETER) {
+ return ret;
+ } else if (ret == PRVINFO_ERROR_NO_MATCHING_PRIVILEGE) {
char* temp = NULL;
temp = dgettext("privilege", "IDS_TPLATFORM_BODY_THIS_PRIVILEGE_IS_NOT_DEFINED");
*description = (char*)calloc(strlen(temp) + 1, sizeof(char));
char* temp = NULL;
temp = dgettext("privilege", "IDS_TPLATFORM_BODY_THIS_PRIVILEGE_IS_NOT_DEFINED");
*description = (char*)calloc(strlen(temp) + 1, sizeof(char));