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

This commit is contained in:
Krishna Rajendran authored and Ryan Dahl committed 2010-03-14 23:08:45 -07:00
1 parent 004faf3846
commit 0d5a1fed33
1 file changed
+1 -1
+1 -1
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);
}