From 0d5a1fed33134d05911a153ade2bf8ae8710fc57 Mon Sep 17 00:00:00 2001 From: Krishna Rajendran Date: Sun, 14 Mar 2010 23:24:29 -0400 Subject: [PATCH] Use gai_strerror when tcp.Server fails to resolve its address or service. --- src/node_net.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_net.cc b/src/node_net.cc index bc0f67315b3..2c5b8de32cc 100644 --- a/src/node_net.cc +++ b/src/node_net.cc @@ -837,7 +837,7 @@ Handle Server::Listen(const Arguments& args) { host : NULL, *port, &server_tcp_hints, &address_list); if (r != 0) { - Local exception = Exception::Error(String::New(strerror(errno))); + Local exception = Exception::Error(String::New(gai_strerror(r))); return ThrowException(exception); }