octacian 5d59142b10 OctOS: Improve error handling
Commands run and code called with the `lua` command would not throw an error if it was unsucessful.
2017-03-28 16:45:27 -07:00

9 lines
131 B
Lua

local params = ...
local code = (table.concat(params, " "))
local ok, res = run(code)
if not ok then
print("Error: "..res)
end