From: Vsevolod Stakhov Date: Wed, 30 Mar 2016 16:12:33 +0000 (+0100) Subject: [Fix] Print error when cannot connect to rspamd X-Git-Tag: 1.2.2~15 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=232ec45b9568c781254e305f94d95ec00752a59f;p=rspamd.git [Fix] Print error when cannot connect to rspamd --- diff --git a/src/client/rspamc.c b/src/client/rspamc.c index f3d8f1fc8..78955e419 100644 --- a/src/client/rspamc.c +++ b/src/client/rspamc.c @@ -1313,6 +1313,10 @@ rspamc_process_input (struct event_base *ev_base, struct rspamc_command *cmd, &err); } } + else { + rspamd_fprintf (stderr, "cannot connect to %s\n", connect_str); + exit (EXIT_FAILURE); + } g_free (hostbuf); }