]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Silence bloody luacheck
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 9 Mar 2018 12:16:30 +0000 (12:16 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 9 Mar 2018 12:16:30 +0000 (12:16 +0000)
src/plugins/lua/elastic.lua

index a344a4bb71e67a0894fccabf7fccfc53ad328528..3fa73c0225beb79cceeca418966e95d312dd0011 100644 (file)
@@ -207,10 +207,10 @@ local function check_elastic_server(cfg, ev_base, _)
   local function http_callback(_, err, body, _)
     if err == 200 then
       local parser = ucl.parser()
-      local res,err = parser:parse_string(body)
+      local res,ucl_err = parser:parse_string(body)
       if not res then
         rspamd_logger.infox(rspamd_config, 'failed to parse reply from %s: %s',
-            plugins_url, err)
+            plugins_url, ucl_err)
         enabled = false;
         return
       end