]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Print error details when set nonblock fails
authorDavid M. Lee <dlee@digium.com>
Fri, 5 Jul 2013 19:56:50 +0000 (19:56 +0000)
committerDavid M. Lee <dlee@digium.com>
Fri, 5 Jul 2013 19:56:50 +0000 (19:56 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393757 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/stasis_http/ari_websockets.c

index 60a18465706a58df3d541bda69acdb33b8fa881f..d020f62483ee102022626b25a90a3ebede6a3cf0 100644 (file)
@@ -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;
        }