aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}