浏览代码

evapi: Improved error message

Signed-off-by: Eloy Coto <[email protected]>
Eloy Coto 8 年之前
父节点
当前提交
5f249318ad
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/evapi/evapi_dispatch.c

+ 1 - 1
src/modules/evapi/evapi_dispatch.c

@@ -492,7 +492,7 @@ void evapi_accept_client(struct ev_loop *loop, struct ev_io *watcher, int revent
 	csock = accept(watcher->fd, (struct sockaddr *)&caddr, &clen);
 
 	if (csock < 0) {
-		LM_ERR("cannot accept the client\n");
+		LM_ERR("cannot accept the client '%s' err='%d'\n", gai_strerror(csock), csock);
 		free(evapi_client);
 		return;
 	}