Commit 450a1b0d authored by CeRiAl's avatar CeRiAl

Handle APP_MSG_INVALID_STATE

parent 8a824f0b
......@@ -36,12 +36,12 @@ void outbox_send(char* send_cmd){
void outbox_send_with_data(char* send_cmd, char* send_data){
DictionaryIterator *iter;
app_message_outbox_begin(&iter);
Tuplet code = TupletCString(MSG_KEY_CMD, send_cmd);
dict_write_tuplet(iter, &code);
Tuplet data = TupletCString(MSG_KEY_CMD_DATA, send_data);
dict_write_tuplet(iter, &data);
dict_write_end(iter);
app_message_outbox_send();
}
......@@ -64,6 +64,9 @@ char* translate_app_message_result(AppMessageResult app_message_error) {
case APP_MSG_APP_NOT_RUNNING:
msg = "The local application was not running.";
break;
case APP_MSG_INVALID_STATE:
msg = "The function was called with invalid state.";
break;
case APP_MSG_INVALID_ARGS:
msg = "The function was called with invalid arguments.";
break;
......@@ -101,7 +104,7 @@ char* split_id_name_pair(char *pair) {
if (pipe_pos != NULL) {
(*pipe_pos) = '\0';
}
return pipe_pos + 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment