Use gai_strerror when tcp.Server fails to resolve its address or service.
This commit is contained in:
parent
004faf3846
commit
0d5a1fed33
@ -837,7 +837,7 @@ Handle<Value> Server::Listen(const Arguments& args) {
|
||||
host : NULL, *port, &server_tcp_hints, &address_list);
|
||||
|
||||
if (r != 0) {
|
||||
Local<Value> exception = Exception::Error(String::New(strerror(errno)));
|
||||
Local<Value> exception = Exception::Error(String::New(gai_strerror(r)));
|
||||
return ThrowException(exception);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user