From c6f6400bdacfa7b595fc0c2bb6dabac75d074a47 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 15 Feb 2001 21:28:18 +0000 Subject: #85961: Wrong error message when local connection fails. svn path=/trunk/; revision=3102 --- driver.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'driver.c') diff --git a/driver.c b/driver.c index ee4d3e5f..47141b1a 100644 --- a/driver.c +++ b/driver.c @@ -2416,7 +2416,15 @@ is restored.")); if (ok==PS_SOCKET || ok==PS_SYNTAX || ok==PS_IOERR || ok==PS_ERROR || ok==PS_PROTOCOL || ok==PS_LOCKBUSY || ok==PS_SMTP || ok==PS_DNS) - report(stderr, _("%s error while fetching from %s\n"), msg, ctl->server.pollname); + { + char *stem; + + if (phase == FORWARDING_WAIT || phase == LISTENER_WAIT) + stem = _("%s error while fetching from %s\n"); + else + stem = _("%s error while delivering to SMTP host %s\n"); + report(stderr, stem, msg, ctl->server.pollname); + } closeUp: /* execute post-initialization command, if any */ -- cgit v1.2.3