diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c index 4eb4d2c55..9db7df75d 100644 --- a/src/main.c +++ b/src/main.c @@ -858,7 +858,9 @@ main (int argc, char **argv, char **env) } l = g_list_next (l); } - init_lua_filters (rspamd->cfg); + if (! init_lua_filters (rspamd->cfg)) { + res = FALSE; + } if (dump_vars) { dump_cfg_vars (rspamd->cfg); } @@ -919,7 +921,10 @@ main (int argc, char **argv, char **env) l = g_list_next (l); } - init_lua_filters (rspamd->cfg); + if (! init_lua_filters (rspamd->cfg)) { + msg_err ("error loading lua plugins"); + exit (EXIT_FAILURE); + } init_cfg_cache (rspamd->cfg); |