Check the permission denied error code
authorSangyoon Jang <s89.jang@samsung.com>
Fri, 11 Sep 2015 05:27:20 +0000 (14:27 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Fri, 11 Sep 2015 05:27:20 +0000 (14:27 +0900)
Change-Id: I9c3042db0b5d8fd69d21cb29e2004268fcdcee43
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
alarm/alarm.c

index c6851fc..b31af85 100644 (file)
@@ -98,6 +98,11 @@ static int convert_error_code_to_alarm(const char* function, alarm_error_t alarm
                return ALARM_ERROR_CONNECTION_FAIL;
                break;
 
+       case ERR_ALARM_NO_PERMISSION:
+               LOGE("[%s] PERMISSION_DENIED(0x%08x)", function, ALARM_ERROR_PERMISSION_DENIED);
+               return ALARM_ERROR_PERMISSION_DENIED;
+               break;
+
        case ALARMMGR_RESULT_SUCCESS:
                return ALARM_ERROR_NONE;
                break;