diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-02-15 21:28:18 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-02-15 21:28:18 +0000 |
commit | c6f6400bdacfa7b595fc0c2bb6dabac75d074a47 (patch) | |
tree | 962f56029688ba4757eba7963b2fa2ed9f680525 /driver.c | |
parent | 7db31ad40528421524519a513c9b8ce8728635fb (diff) | |
download | fetchmail-c6f6400bdacfa7b595fc0c2bb6dabac75d074a47.tar.gz fetchmail-c6f6400bdacfa7b595fc0c2bb6dabac75d074a47.tar.bz2 fetchmail-c6f6400bdacfa7b595fc0c2bb6dabac75d074a47.zip |
#85961: Wrong error message when local connection fails.
svn path=/trunk/; revision=3102
Diffstat (limited to 'driver.c')
-rw-r--r-- | driver.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 */ |