From: David M. Lee Date: Fri, 5 Jul 2013 19:56:50 +0000 (+0000) Subject: Print error details when set nonblock fails X-Git-Tag: 13.0.0-beta1~1540 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cc3478d2e83f8d9ee52d88aecda3693ee463ea96;p=thirdparty%2Fasterisk.git Print error details when set nonblock fails git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393757 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/stasis_http/ari_websockets.c b/res/stasis_http/ari_websockets.c index 60a1846570..d020f62483 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; }