Skip to content

Commit

Permalink
Added wdmp error code for CCSP_ERR_METHOD_NOT_SUPPORTED
Browse files Browse the repository at this point in the history
  • Loading branch information
gbuddappagari committed Oct 19, 2017
1 parent 605e794 commit 3c0e959
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wdmp-c.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ typedef enum
WDMP_ERR_NOTIFY_IS_NULL,
WDMP_ERR_INVALID_WIFI_INDEX,
WDMP_ERR_INVALID_RADIO_INDEX,
WDMP_ERR_ATOMIC_GET_SET_FAILED
WDMP_ERR_ATOMIC_GET_SET_FAILED,
WDMP_ERR_METHOD_NOT_SUPPORTED
} WDMP_STATUS;

typedef struct
Expand Down
4 changes: 4 additions & 0 deletions src/wdmp_internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,10 @@ void wdmp_form_table_response(res_struct *resObj, cJSON *response)
{
strcpy(result,"Invalid Input parameter - CID/CMC value cannot be set");
}
else if (status == WDMP_ERR_METHOD_NOT_SUPPORTED)
{
strcpy(result,"Method is not supported");
}
else
{
strcpy(result,"Unknown Error");
Expand Down

0 comments on commit 3c0e959

Please sign in to comment.