Commands run and code called with the `lua` command would not throw an error if it was unsucessful.
9 lines
131 B
Lua
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
|