From 330d0365531e63bd8fb86c3df7e96f6667748242 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Wed, 21 Sep 2005 10:52:08 +0000 Subject: Revise error messages, suggested by Thomas Wolff. svn path=/trunk/; revision=4306 --- socket.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3