From cc3478d2e83f8d9ee52d88aecda3693ee463ea96 Mon Sep 17 00:00:00 2001 From: "David M. Lee" Date: Fri, 5 Jul 2013 19:56:50 +0000 Subject: Print error details when set nonblock fails git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393757 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/stasis_http/ari_websockets.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'res') diff --git a/res/stasis_http/ari_websockets.c b/res/stasis_http/ari_websockets.c index 60a184657..d020f6248 100644 --- a/res/stasis_http/ari_websockets.c +++ b/res/stasis_http/ari_websockets.c @@ -65,7 +65,8 @@ struct ari_websocket_session *ari_websocket_session_create( if (ast_websocket_set_nonblock(ws_session) != 0) { ast_log(LOG_ERROR, - "Stasis web socket failed to set nonblock; closing\n"); + "ARI web socket failed to set nonblock; closing: %s\n", + strerror(errno)); return NULL; } -- cgit v1.2.3