diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lua/lua_config.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index 680203c1e..e24fb3e7e 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -1274,7 +1274,10 @@ lua_metric_symbol_callback (struct rspamd_task *task, res = FALSE; } else { - g_assert_not_reached (); + /* Something bogus has been returned, so we should log it */ + msg_err_task ("invalid return value for %s: %s", + cd->symbol, lua_typename (L, type)); + res = FALSE; } if (res) { |