aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-03-30 17:12:33 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-03-30 17:12:33 +0100
commit232ec45b9568c781254e305f94d95ec00752a59f (patch)
tree878c4ba0e6fd1cbf95d7cbdc07f15b24f3b5b72f /src
parentef1f08b369903b9ce6046322718dc39cf241dbd0 (diff)
downloadrspamd-232ec45b9568c781254e305f94d95ec00752a59f.tar.gz
rspamd-232ec45b9568c781254e305f94d95ec00752a59f.zip
[Fix] Print error when cannot connect to rspamd
Diffstat (limited to 'src')
-rw-r--r--src/client/rspamc.c4
1 files changed, 4 insertions, 0 deletions
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);
}