From 2502b11c42dd0a19715723c102c52713ef8ad351 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Wed, 21 Sep 2005 10:48:14 +0000 Subject: Revise error messages, suggested by Thomas Wolff. svn path=/trunk/; revision=4305 --- fetchmail.c | 4 ++-- servport.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/fetchmail.c b/fetchmail.c index 6d1b34e1..f1f40b4f 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -1182,14 +1182,14 @@ static int load_params(int argc, char **argv, int optind) if (port < 0) { (void) fprintf(stderr, - GT_("%s configuration invalid, port number cannot be negative\n"), + GT_("fetchmail: %s configuration invalid, specify positive port number for service or port\n"), ctl->server.pollname); exit(PS_SYNTAX); } if (ctl->server.protocol == P_RPOP && port >= 1024) { (void) fprintf(stderr, - GT_("%s configuration invalid, RPOP requires a privileged port\n"), + GT_("fetchmail: %s configuration invalid, RPOP requires a privileged port\n"), ctl->server.pollname); exit(PS_SYNTAX); } diff --git a/servport.c b/servport.c index 8d609bce..171eb53f 100644 --- a/servport.c +++ b/servport.c @@ -70,7 +70,8 @@ int servport(const char *service) { return port; err: - report(stderr, GT_("Cannot resolve service %s to port. Please specify the service as decimal port number.\n"), service); + report(stderr, GT_("Cannot resolve service %s to port number.\n"), service); + report(stderr, GT_("Please specify the service as decimal port number.\n")); return -1; } /* end of servport.c */ -- cgit v1.2.3