Better structure for the WebSocket validation failure message

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393834 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
David M. Lee 2013-07-08 20:07:58 +00:00
parent 259fb38187
commit ed60f4793a
1 changed files with 5 additions and 2 deletions

View File

@ -124,8 +124,11 @@ struct ast_json *ari_websocket_session_read(
return ast_json_ref(message);
}
#define VALIDATION_FAILED \
"{ \"error\": \"Outgoing message failed validation\" }"
#define VALIDATION_FAILED \
"{" \
" \"error\": \"InvalidMessage\"," \
" \"message\": \"Message validation failed\"" \
"}"
int ari_websocket_session_write(struct ari_websocket_session *session,
struct ast_json *message)