From 91edebd962aa90b42cb75b39064dd7e4e27841f1 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 16 Jan 2000 23:49:02 +0000 Subject: Better authentication-failure handling. svn path=/trunk/; revision=2711 --- driver.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'driver.c') diff --git a/driver.c b/driver.c index 34972405..c934ea74 100644 --- a/driver.c +++ b/driver.c @@ -1678,10 +1678,8 @@ const int maxfetch; /* maximum number of messages to fetch */ report(stderr, _("Lock-busy error on %s@%s\n"), ctl->remotename, ctl->server.truename); - else + else if (ok == PS_AUTHFAIL) { - if (ok == PS_ERROR) - ok = PS_AUTHFAIL; report(stderr, _("Authorization failure on %s@%s\n"), ctl->remotename, ctl->server.truename); @@ -1711,6 +1709,11 @@ const int maxfetch; /* maximum number of messages to fetch */ ctl->wedged = TRUE; } } + else + report(stderr, _("Unknown login or authentication error on %s@%s\n"), + ctl->remotename, + ctl->server.truename); + goto cleanUp; } } -- cgit v1.2.3