diff --git a/projects/updater/install.lua b/projects/updater/install.lua index 881ab77..57bed7d 100644 --- a/projects/updater/install.lua +++ b/projects/updater/install.lua @@ -58,6 +58,9 @@ local function getAllFiles() local indexesUrl = url .. "/indexes/" .. programToInstall local result = http.get(indexesUrl) + if result == nil then + print("error! getting indexes for " .. programToInstall) + end local resultText = result.readAll() local resultTable = split(resultText, "\n") diff --git a/projects/updater/update.lua b/projects/updater/update.lua index f6f32fb..b0f1bef 100644 --- a/projects/updater/update.lua +++ b/projects/updater/update.lua @@ -61,11 +61,17 @@ local function getAllFiles() indexesFile.close() end - local result = http.post(indexesUrl, currentFiles) + local result = http.post(updateUrl, currentFiles) + if result == nil then + print("error! getting updates for " .. programToInstall) + end local resultText = result.readAll() local resultTable = split(resultText, "\n") local result2 = http.get(indexesUrl) + if result2 == nil then + print("error! getting indexes for " .. programToInstall) + end local resultText2 = result2.readAll() local resultTable2 = split(resultText2, "\n")