From 6e65663977ad648a778b31e37844801f6c1cb09c Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Wed, 29 Jan 2014 20:43:13 -0200 Subject: Fix logic to report errors when loading config.lua. Closes #228. Please reopen if problem persists. --- src/luarocks/cfg.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua index 89c53f24..484bfb79 100644 --- a/src/luarocks/cfg.lua +++ b/src/luarocks/cfg.lua @@ -146,7 +146,7 @@ if not sys_config_ok then sys_config_file = sys_config_dir.."/config.lua" sys_config_ok, err = persist.load_into_table(sys_config_file, _M) end -if err and ok == nil then +if err and sys_config_ok == nil then io.stderr:write(err.."\n") end -- cgit v1.2.3-55-g6feb