From: Ian Jackson Date: Thu, 29 Apr 2010 00:03:38 +0000 (+0100) Subject: print sensible failure message X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=inn-innduct.git;a=commitdiff_plain;h=be4bd35463e1678b5642ef008e80813ddccbed60 print sensible failure message --- diff --git a/backends/innduct.c b/backends/innduct.c index ddd9267..288c9dc 100644 --- a/backends/innduct.c +++ b/backends/innduct.c @@ -1268,7 +1268,7 @@ static void connect_start(void) { alarm(connection_setup_timeout); if (NNTPconnect((char*)remote_host, port, &cn_from, &cn_to, buf) < 0) { - if (buf[0]) fatal("connect: rejected: %s", sanitise(buf)); + if (buf[0]) fatal("connect: failed: %s", sanitise(buf)); else sysfatal("connect: connection attempt failed"); } if (NNTPsendpassword((char*)remote_host, cn_from, cn_to) < 0)