Skip to content
Snippets Groups Projects
Commit ed60f479 authored by David M. Lee's avatar David M. Lee
Browse files

Better structure for the WebSocket validation failure message

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393834 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 259fb381
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment