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