mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Use gai_strerror when tcp.Server fails to resolve its address or service.
This commit is contained in:
1 parent
004faf3846
commit
0d5a1fed33
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user