From 0c0b842370bbd70d1f4dd6d14058458a84f4a24e Mon Sep 17 00:00:00 2001 From: Luna Date: Wed, 7 Dec 2022 01:35:57 -0300 Subject: [PATCH] add result of open --- config.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.lua b/config.lua index cac9ac6..f83449b 100644 --- a/config.lua +++ b/config.lua @@ -16,13 +16,13 @@ end local function findConfigFile() for _, config_directory in ipairs(mysplit(config_path, ";")) do 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 local data = fd:read("*a") fd:close() return data else - log('config not found at ' .. possible_config_path) + log('config not found at ' .. possible_config_path .. ':' .. tostring(res)) end end