mirror of
https://github.com/curl/curl.git
synced 2025-02-17 14:59:45 +08:00
in debug messages also show error description
This commit is contained in:
parent
5a267c4312
commit
71afe05b9f
@ -640,8 +640,9 @@ DhcpNameServer
|
||||
status = ARES_EOF;
|
||||
break;
|
||||
default:
|
||||
DEBUGF(fprintf(stderr, "fopen() failed with error: %d %s\n",
|
||||
errno, strerror(errno)));
|
||||
DEBUGF(fprintf(stderr, "Error opening file: %s\n", PATH_RESOLV_CONF));
|
||||
DEBUGF(fprintf(stderr, "fopen() failed with error: %d\n", errno));
|
||||
status = ARES_EFILE;
|
||||
}
|
||||
}
|
||||
@ -663,8 +664,9 @@ DhcpNameServer
|
||||
status = ARES_EOF;
|
||||
break;
|
||||
default:
|
||||
DEBUGF(fprintf(stderr, "fopen() failed with error: %d %s\n",
|
||||
errno, strerror(errno)));
|
||||
DEBUGF(fprintf(stderr, "Error opening file: %s\n", "/etc/nsswitch.conf"));
|
||||
DEBUGF(fprintf(stderr, "fopen() failed with error: %d\n", errno));
|
||||
status = ARES_EFILE;
|
||||
}
|
||||
}
|
||||
@ -687,8 +689,9 @@ DhcpNameServer
|
||||
status = ARES_EOF;
|
||||
break;
|
||||
default:
|
||||
DEBUGF(fprintf(stderr, "fopen() failed with error: %d %s\n"
|
||||
errno, strerror(errno)));
|
||||
DEBUGF(fprintf(stderr, "Error opening file: %s\n", "/etc/host.conf"));
|
||||
DEBUGF(fprintf(stderr, "fopen() failed with error: %d\n", errno));
|
||||
status = ARES_EFILE;
|
||||
}
|
||||
}
|
||||
@ -711,8 +714,9 @@ DhcpNameServer
|
||||
status = ARES_EOF;
|
||||
break;
|
||||
default:
|
||||
DEBUGF(fprintf(stderr, "fopen() failed with error: %d %s\n",
|
||||
errno, strerror(errno)));
|
||||
DEBUGF(fprintf(stderr, "Error opening file: %s\n", "/etc/svc.conf"));
|
||||
DEBUGF(fprintf(stderr, "fopen() failed with error: %d\n", errno));
|
||||
status = ARES_EFILE;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user