Properly handle command not found
This commit is contained in:
parent
9c15785c70
commit
93a2f95330
@ -64,8 +64,8 @@ while true do
|
||||
end
|
||||
if not fn then
|
||||
print("Command", command, "not found.")
|
||||
end
|
||||
|
||||
else
|
||||
local ok, result = pcall(fn, table.unpack(args))
|
||||
if result then textutils.pagedPrint(result) end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user