scheduler api

This commit is contained in:
Andy Killorin 2023-12-22 18:13:56 -06:00
commit c4e745ba2e
Signed by: ank
GPG key ID: B6241CA3B552BCA4

View file

@ -195,9 +195,10 @@ repeat
drawui(command, args, backoff)
local ret = nil
local err = nil
if command then
ret = commands[command](args)
ret, err = commands[command](args)
end
if command == "Update" and ret == false then
@ -212,6 +213,12 @@ repeat
ret_table = "Success"
else
ret_table = "Failure"
term.setCursorPos(1,11)
term.clearLine()
term.setTextColor(colors.white)
term.write("error: ")
term.setTextColor(colors.red)
print(err)
end
elseif ret then
ret_table = ret