aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-12-30 17:00:52 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-12-30 17:00:52 +0000
commit3003f8f75fc3fa01012a9ebd20b0bdd332c938d7 (patch)
treea63b437cb88a83c0416f3a82aa0e54048e3bb98a /src/lua
parent7e179b064ee6ad77f76fdb125bdb373d215719a9 (diff)
downloadrspamd-3003f8f75fc3fa01012a9ebd20b0bdd332c938d7.tar.gz
rspamd-3003f8f75fc3fa01012a9ebd20b0bdd332c938d7.zip
[Minor] Add fail-safety for settings post load
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_task.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index 9cc037796..38b22f489 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -5774,7 +5774,7 @@ lua_task_set_settings_id (lua_State *L)
rspamd_config_find_settings_id_ref (task->cfg, id);
if (selt == NULL) {
- return luaL_error (L, "settings id %u is unknown", id);
+ return luaL_error (L, "settings id %f is unknown", (lua_Number)id);
}
if (task->settings_elt) {
/* Overwrite existing settings from Lua */