From: Vsevolod Stakhov Date: Sat, 22 Sep 2018 10:48:23 +0000 (+0100) Subject: [Minor] Fix optional arguments X-Git-Tag: 1.8.0~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e53be3a7ab1d3a520b6c01b8d1424b53689b606;p=thirdparty%2Frspamd.git [Minor] Fix optional arguments --- diff --git a/lualib/lua_selectors.lua b/lualib/lua_selectors.lua index 953532c8d3..065eac89b0 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