From 1b6f6234438624e8449631e78fca9d5043100f4e Mon Sep 17 00:00:00 2001 From: Sangyoon Jang Date: Wed, 30 Sep 2015 14:58:42 +0900 Subject: [PATCH] Fix return value when the given package is not exist should return error code of invalid parameter Change-Id: I13bf87a8f9deabfe1ebd42c8821cabb8d9cc31e7 Signed-off-by: Sangyoon Jang --- client/src/pkgmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/pkgmgr.c b/client/src/pkgmgr.c index d9e0b81..8f366cb 100644 --- a/client/src/pkgmgr.c +++ b/client/src/pkgmgr.c @@ -1003,7 +1003,7 @@ API int pkgmgr_client_usr_uninstall(pkgmgr_client *pc, const char *pkg_type, ret = pkgmgrinfo_pkginfo_get_usr_pkginfo(pkgid, uid, &handle); if (ret < 0) - return PKGMGR_R_ERROR; + return PKGMGR_R_EINVAL; ret = pkgmgrinfo_pkginfo_get_type(handle, &pkgtype); if (ret < 0) { -- 2.7.4