add debug messages for initialization failures

This commit is contained in:
Yang Tse
2007-02-19 02:03:58 +00:00
parent 385e6d0eea
commit 679a675660
4 changed files with 23 additions and 2 deletions
+1
View File
@@ -224,6 +224,7 @@ static int file_lookup(union ares_addr *addr, int family, struct hostent **host)
switch(error)
{
case ENOENT:
case ESRCH:
return ARES_ENOTFOUND;
default:
DEBUGF(fprintf(stderr, "fopen() failed with error: %d %s\n",