Properly handle command not found
This commit is contained in:
		@@ -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
 | 
			
		||||
		Reference in New Issue
	
	Block a user