Skip to content

Conversation

@Satish11012007
Copy link

Resolves #8458

While testing color-related APIs in p5.js 2.x, I noticed that several functions emit a Friendly Error but still throw runtime exceptions (e.g. TypeError, uncaught Error), causing sketches to crash.
image
image

Friendly Errors are generally expected to report invalid input and fail gracefully without terminating execution, but this behavior was inconsistent across color APIs.

This PR improves error handling in
color “creating & reading” functions to ensure that after a Friendly Error is logged, execution exits safely instead of throwing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant