diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-01-14 17:25:56 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-01-14 17:25:56 +0000 |
commit | 9546576a9e449ac0d57246679af8b00d940af55b (patch) | |
tree | 5822f2d6c6c604ba48ebac04173be245f8815c2c /src/lua/lua_task.c | |
parent | aa07f4bc9eff2a252743e20faa334f2aa7d589d5 (diff) | |
download | rspamd-9546576a9e449ac0d57246679af8b00d940af55b.tar.gz rspamd-9546576a9e449ac0d57246679af8b00d940af55b.zip |
[Minor] Fix some issues
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r-- | src/lua/lua_task.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 5728b3342..e8746f2bd 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -1673,6 +1673,12 @@ lua_task_set_pre_result (lua_State * L) } if (action == NULL) { + struct rspamd_action *tmp; + + HASH_ITER (hh, task->cfg->actions, action, tmp) { + msg_err ("known action: %s = %f", action->name, action->threshold); + } + return luaL_error (L, "unknown action %s", lua_tostring (L, 2)); } |