From 49fcd4b33bea7a4afc515dfbcac4d49a8e22196a Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Thu, 10 Nov 2005 01:20:42 +0000 Subject: Revise some error messages so they are less confusing. Sunil Shetye. svn path=/trunk/; revision=4401 --- driver.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'driver.c') diff --git a/driver.c b/driver.c index f978c341..c00294ec 100644 --- a/driver.c +++ b/driver.c @@ -1510,13 +1510,14 @@ is restored.")); break; } if (msg) { - const char *stem; - - if (phase == FORWARDING_WAIT || phase == LISTENER_WAIT) - stem = GT_("%s error while delivering to SMTP host %s\n"); + if (phase == FORWARDING_WAIT || phase == LISTENER_WAIT + || err == PS_SMTP) + report(stderr, GT_("%s error while fetching from %s@%s and delivering to SMTP host %s\n"), + msg, ctl->remotename, ctl->server.pollname, + ctl->smtphost ? ctl->smtphost : GT_("unknown")); else - stem = GT_("%s error while fetching from %s\n"); - report(stderr, stem, msg, ctl->server.pollname); + report(stderr, GT_("%s error while fetching from %s@%s\n"), + msg, ctl->remotename, ctl->server.pollname); } closeUp: -- cgit v1.2.3