aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lualib/lua_selectors.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_selectors.lua b/lualib/lua_selectors.lua
index 953532c8d..065eac89b 100644
--- a/lualib/lua_selectors.lua
+++ b/lualib/lua_selectors.lua
@@ -705,7 +705,7 @@ exports.parse_selector = function(cfg, str)
for i,selt in ipairs(schema) do
local res,err = selt:transform(args[i])
- if not res then
+ if err then
logger.errx(rspamd_config, 'invalid arguments for %s: %s', name, err)
return false
else