Replies: 1 comment 2 replies
-
py5's error handling is activate for running py5 Sketches. If a user attempts to call a py5 method outside of a running Sketch, the exception is not caught by anything py5 can use to intervene and provide a better message. I agree that the message is confusing. I will need to think about what can be done here. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As @vsquared has shown initially at #486, the error message
Cannot invoke "processing.core.PGraphics.line(float, float, float, float)" because "this.g" is null
can be a bit confusing for those getting started with py5/Processing. Maybe we could add to it some complementary friendly advice?Beta Was this translation helpful? Give feedback.
All reactions