summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyunho Kang <hhstark.kang@samsung.com>2016-03-24 17:15:06 +0900
committerHyunho Kang <hhstark.kang@samsung.com>2016-03-24 17:15:52 +0900
commite0b16910b2aedca53b932f863002a151df0f38c6 (patch)
treef052e6ca5f28f26196c79d0e0fd71cfdf51d66da
parentd7925ea051cbda8d564dab324a2c115585a8b6ec (diff)
downloadbadge-submit/tizen/20160324.104731.tar.gz
badge-submit/tizen/20160324.104731.tar.bz2
badge-submit/tizen/20160324.104731.zip
Change-Id: Id6b7ecdba083fc924dd619306296d0ab46b74ade Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
-rwxr-xr-xsrc/badge_ipc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/badge_ipc.c b/src/badge_ipc.c
index e97c976..55ccba5 100755
--- a/src/badge_ipc.c
+++ b/src/badge_ipc.c
@@ -357,6 +357,8 @@ static int _send_sync_badge(GVariant *body, GDBusMessage **reply, char *cmd)
if (g_dbus_message_to_gerror(*reply, &err)) {
ret = err->code;
ERR("_send_sync_badge cmd = %s, error %s", cmd, err->message);
+ if (err->code == G_DBUS_ERROR_ACCESS_DENIED)
+ ret = BADGE_ERROR_PERMISSION_DENIED;
g_error_free(err);
return ret;
}