Skip to content

Commit

Permalink
[mi_json] return jsonrpc compliat error message
Browse files Browse the repository at this point in the history
(cherry picked from commit 26a66f6aa2fb957a16ed000cc10360bf5f648e18)
  • Loading branch information
ionutrazvanionita committed May 18, 2016
1 parent 841343b commit 4a086b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/mi_json/mi_json.c
Expand Up @@ -55,7 +55,7 @@ static const str MI_HTTP_U_NOT_FOUND = str_init("Command not found");


char err_buf[MI_ERROR_BUF_MAX_LEN];
static const char* MI_JSON_COMMAND_ERROR_S = "{\"code\":\"%u\", \"reason\": \"%.*s\"}";
static const char* MI_JSON_COMMAND_ERROR_S = "{\"error\": {\"code\": %u, \"message\": \"%.*s\"}}";



Expand Down

0 comments on commit 4a086b6

Please sign in to comment.