aboutsummaryrefslogtreecommitdiffstats
path: root/etrn.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-04-06 21:42:00 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-04-06 21:42:00 +0000
commitcc7773d1d114ba7b8846a8c9c508f89cb6012700 (patch)
tree766975bb36cd88f0ffee995eb664ad5247c0368c /etrn.c
parent3c9b31ad837bed8e9c556107f77b5ad96be1a4d1 (diff)
downloadfetchmail-cc7773d1d114ba7b8846a8c9c508f89cb6012700.tar.gz
fetchmail-cc7773d1d114ba7b8846a8c9c508f89cb6012700.tar.bz2
fetchmail-cc7773d1d114ba7b8846a8c9c508f89cb6012700.zip
Better error logging.
svn path=/trunk/; revision=954
Diffstat (limited to 'etrn.c')
-rw-r--r--etrn.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/etrn.c b/etrn.c
index 1e44656e..a2254c79 100644
--- a/etrn.c
+++ b/etrn.c
@@ -66,23 +66,23 @@ static int etrn_getrange(FILE *sockfp, struct query *ctl, int*countp, int*newp)
break;
case 458: /* Unable to queue messages for node <x> */
- error(0, 0, "Unable to queue messages for node %s", ctl->smtphost);
+ error(0, -1, "Unable to queue messages for node %s", ctl->smtphost);
return(PS_PROTOCOL);
case 459: /* Node <x> not allowed: <reason> */
- error(0, 0, "Node %s not allowed: %s", ctl->smtphost, buf);
+ error(0, -1, "Node %s not allowed: %s", ctl->smtphost, buf);
return(PS_AUTHFAIL);
case 500: /* Syntax Error */
- error(0, 0, "ETRN syntax error");
+ error(0, -1, "ETRN syntax error");
return(PS_PROTOCOL);
case 501: /* Syntax Error in Parameters */
- error(0, 0, "ETRN syntax error in parameters");
+ error(0, -1, "ETRN syntax error in parameters");
return(PS_PROTOCOL);
default:
- error(0, 0, "Unknown ETRN error");
+ error(0, -1, "Unknown ETRN error %d", atoi(buf));
return(PS_PROTOCOL);
}