This commit is contained in:
Gvidas Juknevičius 2024-08-18 04:50:23 +03:00
parent aa17150f8e
commit 3dc1abea4e
Signed by: MCorange
GPG Key ID: 12B1346D720B7FBB
3 changed files with 10 additions and 2 deletions

View File

@ -32,8 +32,11 @@ rawset(__BUNDLER_FILES, "updater.lua", function ()
file.close()
os.reboot()
end
print("Bad file download (core)")
end
print("Bad mem read (core)")
end
print("Bad download (core)")
end
end
function mod.UpdateChecker()
@ -168,10 +171,11 @@ rawset(__BUNDLER_FILES, "ui.lua", function ()
btnX = 1
end
end
local status, _ = pcall(function ()
local status, err = pcall(function ()
parallel.waitForAll(basalt.autoUpdate, updater.updateChecker)
end)
if not status then
print("Error detected: " .. err)
monitor.clear()
fs.delete("basalt.lua")
fs.delete("startup.lua")

View File

@ -109,11 +109,12 @@ function mod.InitUi()
end
local status, _ = pcall(function ()
local status, err = pcall(function ()
parallel.waitForAll(basalt.autoUpdate, updater.updateChecker)
end)
if not status then
print("Error detected: " .. err)
monitor.clear()
fs.delete("basalt.lua")
fs.delete("startup.lua")

View File

@ -25,8 +25,11 @@ local function checkForUpdate()
file.close()
os.reboot()
end
print("Bad file download (core)")
end
print("Bad mem read (core)")
end
print("Bad download (core)")
end
end