Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

beginShape() and endShape() needs more helpful error messages #301

Open
trych opened this issue Nov 14, 2018 · 0 comments
Open

beginShape() and endShape() needs more helpful error messages #301

trych opened this issue Nov 14, 2018 · 0 comments

Comments

@trych
Copy link
Contributor

trych commented Nov 14, 2018

I am writing this down as a reminder for later:

One common error, that happens all the time

// beginShape() is not outside the for-loop as it should be
for(var i = 0; i < 20; i++) {
  beginShape();
  vertex(random(width), random(height);
}
endShape();

gives the error Type error: null is not an object. Could do with a more helpful error.

Another error I just had in class was Error: entire path. Still need to investigate the script in question to find out what went wrong there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant