Print error details when set nonblock fails

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393757 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
David M. Lee
2013-07-05 19:56:50 +00:00
parent 01c21c7aea
commit cc3478d2e8

View File

@@ -65,7 +65,8 @@ struct ari_websocket_session *ari_websocket_session_create(
if (ast_websocket_set_nonblock(ws_session) != 0) { if (ast_websocket_set_nonblock(ws_session) != 0) {
ast_log(LOG_ERROR, 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; return NULL;
} }