add result of open
This commit is contained in:
parent
4ff5a915c9
commit
0c0b842370
1 changed files with 2 additions and 2 deletions
|
@ -16,13 +16,13 @@ end
|
||||||
local function findConfigFile()
|
local function findConfigFile()
|
||||||
for _, config_directory in ipairs(mysplit(config_path, ";")) do
|
for _, config_directory in ipairs(mysplit(config_path, ";")) do
|
||||||
local possible_config_path = config_directory .. "/" .. "conf.lua"
|
local possible_config_path = config_directory .. "/" .. "conf.lua"
|
||||||
local fd = io.open(possible_config_path, "rb")
|
local fd, res = io.open(possible_config_path, "rb")
|
||||||
if fd then
|
if fd then
|
||||||
local data = fd:read("*a")
|
local data = fd:read("*a")
|
||||||
fd:close()
|
fd:close()
|
||||||
return data
|
return data
|
||||||
else
|
else
|
||||||
log('config not found at ' .. possible_config_path)
|
log('config not found at ' .. possible_config_path .. ':' .. tostring(res))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue