As uniqumkt said, this has as much to do with Java as automobile has with bile. The two words have some of the same letters, and are completely unrelated.
What you want to do is before the event loop add
var i = 0;
In the loop, add
if ($i++} { continue; }
That will print only one error message. I can't actually read your code on my phone, but the screenshot tells me what the code must be.
|