Use gai_strerror when tcp.Server fails to resolve its address or service.

This commit is contained in:
Krishna Rajendran 2010-03-14 23:24:29 -04:00 committed by Ryan Dahl
parent 004faf3846
commit 0d5a1fed33

View File

@ -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);
}