diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-22 11:48:23 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-22 11:48:23 +0100 |
commit | 6e53be3a7ab1d3a520b6c01b8d1424b53689b606 (patch) | |
tree | 228f43d0a16a71dd2775698b684f059f48beec24 /lualib/lua_selectors.lua | |
parent | 4dc3251226adb69f40ac7431fed141850a2c0306 (diff) | |
download | rspamd-6e53be3a7ab1d3a520b6c01b8d1424b53689b606.tar.gz rspamd-6e53be3a7ab1d3a520b6c01b8d1424b53689b606.zip |
[Minor] Fix optional arguments
Diffstat (limited to 'lualib/lua_selectors.lua')
-rw-r--r-- | lualib/lua_selectors.lua | 2 |
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 |