From: Vsevolod Stakhov Date: Sun, 13 Nov 2022 20:33:37 +0000 (+0000) Subject: [Minor] Fix some issues X-Git-Tag: 3.5~204^2~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4623a10e17a3a838fd174751a5d998746bd16700;p=rspamd.git [Minor] Fix some issues --- diff --git a/lualib/lua_maps.lua b/lualib/lua_maps.lua index 88f0b894a..21480ad63 100644 --- a/lualib/lua_maps.lua +++ b/lualib/lua_maps.lua @@ -202,9 +202,9 @@ local function rspamd_map_add_from_ucl(opt, mtype, description, callback) if t.__data then local cb = key_callback or callback if t.__external then - if cb or not task then + if not cb or not task then local caller = debug.getinfo(2) or {} - rspamd_logger.errx(rspamd_config, "requested external map key without callback; caller: %s:%s", + rspamd_logger.errx(rspamd_config, "requested external map key without callback or task; caller: %s:%s", caller.short_src, caller.currentline) return nil end