]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Print error when cannot connect to rspamd
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 30 Mar 2016 16:12:33 +0000 (17:12 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 30 Mar 2016 16:12:33 +0000 (17:12 +0100)
src/client/rspamc.c

index f3d8f1fc83994af6a3ae3607ccc9442850743c53..78955e41946f7ed2193982df011c474236125dfa 100644 (file)
@@ -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);
 }