updated
This commit is contained in:
17
main.lua
17
main.lua
@@ -109,14 +109,15 @@ local function runSafe()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function run()
|
local function run()
|
||||||
local success, err = pcall(runSafe)
|
runSafe()
|
||||||
if not success then
|
-- local success, err = pcall(runSafe)
|
||||||
monitor.setTextColor(colors.red)
|
-- if not success then
|
||||||
monitor.write("Error: " .. err)
|
-- monitor.setTextColor(colors.red)
|
||||||
isErrorState = true
|
-- monitor.write("Error: " .. err)
|
||||||
modem.open(500)
|
-- isErrorState = true
|
||||||
modem.transmit(500, 500, "Error: " .. err)
|
-- modem.open(500)
|
||||||
end
|
-- modem.transmit(500, 500, "Error: " .. err)
|
||||||
|
-- end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user