mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
server.c: improve error message on bind() failure
This commit is contained in:
parent
a40760a2de
commit
05dc18864d
1 changed files with 2 additions and 2 deletions
|
@ -94,8 +94,8 @@ int lws_context_init_server(struct lws_context_creation_info *info,
|
|||
|
||||
n = bind(sockfd, v, n);
|
||||
if (n < 0) {
|
||||
lwsl_err("ERROR on binding to port %d (%d %d)\n",
|
||||
info->port, n, LWS_ERRNO);
|
||||
lwsl_err("ERROR on binding to port %d (%d %d): %s\n",
|
||||
info->port, n, LWS_ERRNO, strerror(LWS_ERRNO));
|
||||
compatible_close(sockfd);
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue