aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-09-21 10:48:14 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-09-21 10:48:14 +0000
commit2502b11c42dd0a19715723c102c52713ef8ad351 (patch)
tree2fa7562111f00d73f8897d09435d158cc6311325
parent8769e6652c1806c8b006a4e38ca4519581bc820e (diff)
downloadfetchmail-2502b11c42dd0a19715723c102c52713ef8ad351.tar.gz
fetchmail-2502b11c42dd0a19715723c102c52713ef8ad351.tar.bz2
fetchmail-2502b11c42dd0a19715723c102c52713ef8ad351.zip
Revise error messages, suggested by Thomas Wolff.
svn path=/trunk/; revision=4305
-rw-r--r--fetchmail.c4
-rw-r--r--servport.c3
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 */