diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2000-03-06 23:58:01 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2000-03-06 23:58:01 +0000 |
commit | a4e3919f672f1d00aad834ab1b26c6e07751eacc (patch) | |
tree | ef626db43ab8e3ac87d8cc5465854c3b8bcc8c40 | |
parent | 8512ca34be8fcaee3fb919262466949effc9fdf7 (diff) | |
download | fetchmail-a4e3919f672f1d00aad834ab1b26c6e07751eacc.tar.gz fetchmail-a4e3919f672f1d00aad834ab1b26c6e07751eacc.tar.bz2 fetchmail-a4e3919f672f1d00aad834ab1b26c6e07751eacc.zip |
Better error reports.
svn path=/trunk/; revision=2804
-rw-r--r-- | fetchmail.c | 38 |
1 files changed, 14 insertions, 24 deletions
diff --git a/fetchmail.c b/fetchmail.c index ee2d4ee9..fa79a30e 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -687,43 +687,33 @@ int main(int argc, char **argv) switch(querystatus) { case PS_SUCCESS: - report(stdout, "Query status=SUCCESS\n"); break ; + report(stdout, "Query status=0 (SUCCESS)\n"); break ; case PS_NOMAIL: - report(stdout, "Query status=NOMAIL\n"); break ; + report(stdout, "Query status=1 (NOMAIL)\n"); break ; case PS_SOCKET: - report(stdout, "Query status=SOCKET\n"); break ; + report(stdout, "Query status=2 (SOCKET)\n"); break ; case PS_AUTHFAIL: - report(stdout, "Query status=AUTHFAIL\n"); break ; + report(stdout, "Query status=3 (AUTHFAIL)\n"); break ; case PS_PROTOCOL: - report(stdout, "Query status=PROTOCOL\n"); break ; + report(stdout, "Query status=4 (PROTOCOL)\n"); break ; case PS_SYNTAX: - report(stdout, "Query status=SYNTAX\n"); break ; + report(stdout, "Query status=5 (SYNTAX)\n"); break ; case PS_IOERR: - report(stdout, "Query status=IOERR\n"); break ; + report(stdout, "Query status=6 (IOERR)\n"); break ; case PS_ERROR: - report(stdout, "Query status=ERROR\n"); break ; + report(stdout, "Query status=7 (ERROR)\n"); break ; case PS_EXCLUDE: - report(stdout, "Query status=EXCLUDE\n"); break ; + report(stdout, "Query status=8 (EXCLUDE)\n"); break ; case PS_LOCKBUSY: - report(stdout, "Query status=LOCKBUSY\n"); break ; + report(stdout, "Query status=9 (LOCKBUSY)\n"); break ; case PS_SMTP: - report(stdout, "Query status=SMTP\n"); break ; + report(stdout, "Query status=10 (SMTP)\n"); break ; case PS_DNS: - report(stdout, "Query status=DNS\n"); break ; + report(stdout, "Query status=11 (DNS)\n"); break ; case PS_BSMTP: - report(stdout, "Query status=BSMTP\n"); break ; + report(stdout, "Query status=12 (BSMTP)\n"); break ; case PS_MAXFETCH: - report(stdout, "Query status=MAXFETCH\n"); break ; - case PS_UNDEFINED: - report(stdout, "Query status=UNDEFINED\n"); break ; - case PS_TRANSIENT: - report(stdout, "Query status=TRANSIENT\n"); break ; - case PS_REFUSED: - report(stdout, "Query status=REFUSED\n"); break ; - case PS_RETAINED: - report(stdout, "Query status=RETAINED\n"); break ; - case PS_TRUNCATED: - report(stdout, "Query status=TRUNCATED\n"); break ; + report(stdout, "Query status=13 (MAXFETCH)\n"); break ; default: report(stdout, _("Query status=%d\n"), querystatus); break; } |