# HG changeset patch # User Sean Egan # Date 1022810441 0 # Node ID f4f4232f4e83b27ad7d20ff6fe47371085dfc325 # Parent c32a8a97e0111577a956e3ac1c31b844fd906198 [gaim-migrate @ 3301] Sean Davis has a cool first name--and he decided gethostbyname should report its errors. committer: Tailor Script diff -r c32a8a97e011 -r f4f4232f4e83 src/proxy.c --- a/src/proxy.c Thu May 30 18:33:40 2002 +0000 +++ b/src/proxy.c Fri May 31 02:00:41 2002 +0000 @@ -126,6 +126,8 @@ if (!inet_aton(host, &sin.sin_addr)) { struct hostent *hp; if (!(hp = gethostbyname(host))) { + debug_printf("gaim_gethostbyname(\"%s\", %d) failed: %s", + host, port, hstrerror(h_errno)); return NULL; } memset(&sin, 0, sizeof(struct sockaddr_in));