diff options
author | Mikhail Galanin <mgalanin@mimecast.com> | 2018-09-27 14:56:02 +0100 |
---|---|---|
committer | Mikhail Galanin <mgalanin@mimecast.com> | 2018-09-27 14:56:02 +0100 |
commit | 13a1ea4afb96a189767208f927b4588e9af3faa7 (patch) | |
tree | 001326912c46809dcf8d7816bd546ec24605e910 /test/functional/lua | |
parent | 48e23c6397077056ef7ef730ea4e2d76ff6c601a (diff) | |
download | rspamd-13a1ea4afb96a189767208f927b4588e9af3faa7.tar.gz rspamd-13a1ea4afb96a189767208f927b4588e9af3faa7.zip |
[Test] Fixed undefined variable usage
Diffstat (limited to 'test/functional/lua')
-rw-r--r-- | test/functional/lua/rspamadm/test_dns_client.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/functional/lua/rspamadm/test_dns_client.lua b/test/functional/lua/rspamadm/test_dns_client.lua index 15b1d6044..9e7edaa46 100644 --- a/test/functional/lua/rspamadm/test_dns_client.lua +++ b/test/functional/lua/rspamadm/test_dns_client.lua @@ -1,16 +1,17 @@ local rspamd_dns = require "rspamd_dns" local logger = require "rspamd_logger" -local _r,err = rspamd_config:load_ucl('/Users/mgalanin/build/robot-save/rspamd.conf.last') +local config_path = '/Users/mgalanin/build/robot-save/rspamd.conf.last' +local _r,err = rspamd_config:load_ucl(config_path) if not _r then - rspamd_logger.errx('cannot parse %s: %s', opts['config'], err) + logger.errx('cannot parse %s: %s (r=%s)', config_path, err, _r) os.exit(1) end _r,err = rspamd_config:parse_rcl({'logging', 'worker'}) if not _r then - rspamd_logger.errx('cannot process %s: %s', opts['config'], err) + logger.errx('cannot process %s: %s (r=%s)', config_path, err, _r) os.exit(1) end |