diff options
author | Florian Zeitz <florob@babelmonkeys.de> | 2011-06-14 20:30:40 +0200 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2012-04-11 13:33:34 -0700 |
commit | 5874d47f550a2f278ca35ccda96d49ccf0ca7e36 (patch) | |
tree | bd42f1f2761e8f7a87f7248cd09a31aeffeab77f /src | |
parent | f871a29f27ea28dea480d0e061a6d6ec1670384b (diff) | |
download | luasocket-5874d47f550a2f278ca35ccda96d49ccf0ca7e36.tar.gz luasocket-5874d47f550a2f278ca35ccda96d49ccf0ca7e36.tar.bz2 luasocket-5874d47f550a2f278ca35ccda96d49ccf0ca7e36.zip |
dns.getaddrinfo: Return proper error messages
Diffstat (limited to 'src')
-rw-r--r-- | src/inet.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -109,7 +109,7 @@ static int inet_global_getaddrinfo(lua_State *L) | |||
109 | ret = getaddrinfo(hostname, NULL, &hints, &resolved); | 109 | ret = getaddrinfo(hostname, NULL, &hints, &resolved); |
110 | if (ret != 0) { | 110 | if (ret != 0) { |
111 | lua_pushnil(L); | 111 | lua_pushnil(L); |
112 | lua_pushstring(L, "getaddrinfo returned error"); | 112 | lua_pushstring(L, socket_gaistrerror(ret)); |
113 | return 2; | 113 | return 2; |
114 | } | 114 | } |
115 | lua_newtable(L); | 115 | lua_newtable(L); |