diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2014-01-29 20:43:13 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2014-01-29 20:43:13 -0200 |
commit | 6e65663977ad648a778b31e37844801f6c1cb09c (patch) | |
tree | 1557d94f8326e299771601028571ad6fc1eb8721 | |
parent | 78be4960431e36aa3aabe63b9a02c3cca94a3e6f (diff) | |
download | luarocks-6e65663977ad648a778b31e37844801f6c1cb09c.tar.gz luarocks-6e65663977ad648a778b31e37844801f6c1cb09c.tar.bz2 luarocks-6e65663977ad648a778b31e37844801f6c1cb09c.zip |
Fix logic to report errors when loading config.lua. Closes #228. Please reopen if problem persists.
-rw-r--r-- | src/luarocks/cfg.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
146 | sys_config_file = sys_config_dir.."/config.lua" | 146 | sys_config_file = sys_config_dir.."/config.lua" |
147 | sys_config_ok, err = persist.load_into_table(sys_config_file, _M) | 147 | sys_config_ok, err = persist.load_into_table(sys_config_file, _M) |
148 | end | 148 | end |
149 | if err and ok == nil then | 149 | if err and sys_config_ok == nil then |
150 | io.stderr:write(err.."\n") | 150 | io.stderr:write(err.."\n") |
151 | end | 151 | end |
152 | 152 | ||