aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2006-09-26 22:13:19 +0000
committerMatthias Andree <matthias.andree@gmx.de>2006-09-26 22:13:19 +0000
commitf530db9e41b95eff04098686753db4938e30dbe0 (patch)
tree01b300a909c64305db5220adbea31fd1bfc1c305 /driver.c
parent60af2e06481166077fb1e006e30999a9e3f21a40 (diff)
downloadfetchmail-f530db9e41b95eff04098686753db4938e30dbe0.tar.gz
fetchmail-f530db9e41b95eff04098686753db4938e30dbe0.tar.bz2
fetchmail-f530db9e41b95eff04098686753db4938e30dbe0.zip
When the server name cannot be canonicalized, log the gai_strerror value.
svn path=/branches/BRANCH_6-3/; revision=4916
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/driver.c b/driver.c
index a2468f23..064ed1fe 100644
--- a/driver.c
+++ b/driver.c
@@ -1002,8 +1002,9 @@ static int do_session(
if (error)
{
report(stderr,
- GT_("couldn't find canonical DNS name of %s (%s)\n"),
- ctl->server.pollname, ctl->server.queryname);
+ GT_("couldn't find canonical DNS name of %s (%s): %s\n"),
+ ctl->server.pollname, ctl->server.queryname,
+ gai_strerror(error));
err = PS_DNS;
set_timeout(0);
phase = oldphase;