From 6e53be3a7ab1d3a520b6c01b8d1424b53689b606 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 22 Sep 2018 11:48:23 +0100 Subject: [Minor] Fix optional arguments --- lualib/lua_selectors.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lualib') 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 -- cgit v1.2.3