From 232ec45b9568c781254e305f94d95ec00752a59f Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 30 Mar 2016 17:12:33 +0100 Subject: [PATCH] [Fix] Print error when cannot connect to rspamd --- src/client/rspamc.c | 4 ++++ 1 file changed, 4 insertions(+) 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); } -- 2.39.5