aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-09-21 10:52:08 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-09-21 10:52:08 +0000
commit330d0365531e63bd8fb86c3df7e96f6667748242 (patch)
tree13be8d34c0fd26db3d67ea7222ae51d4ad14936c
parent2502b11c42dd0a19715723c102c52713ef8ad351 (diff)
downloadfetchmail-330d0365531e63bd8fb86c3df7e96f6667748242.tar.gz
fetchmail-330d0365531e63bd8fb86c3df7e96f6667748242.tar.bz2
fetchmail-330d0365531e63bd8fb86c3df7e96f6667748242.zip
Revise error messages, suggested by Thomas Wolff.
svn path=/trunk/; revision=4306
-rw-r--r--socket.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/socket.c b/socket.c
index 5e7aa569..85e710a2 100644
--- a/socket.c
+++ b/socket.c
@@ -278,8 +278,10 @@ int SockOpen(const char *host, const char *service,
i = getaddrinfo(host, service, &req, &ai0);
if (i) {
- report(stderr, GT_("fetchmail: getaddrinfo(\"%s\",\"%s\") error: %s\n"),
+ report(stderr, GT_("getaddrinfo(\"%s\",\"%s\") error: %s\n"),
host, service, gai_strerror(i));
+ if (i == EAI_SERVICE)
+ report(stderr, GT_("Try adding the --port option, see FAQ item R12.\n"));
return -1;
}