From a4e3919f672f1d00aad834ab1b26c6e07751eacc Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 6 Mar 2000 23:58:01 +0000 Subject: Better error reports. svn path=/trunk/; revision=2804 --- fetchmail.c | 38 ++++++++++++++------------------------ 1 file changed, 14 insertions(+), 24 deletions(-) (limited to 'fetchmail.c') 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; } -- cgit v1.2.3