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

Engine error handling #474

Open
funwithtriangles opened this issue Dec 9, 2024 · 0 comments
Open

Engine error handling #474

funwithtriangles opened this issue Dec 9, 2024 · 0 comments

Comments

@funwithtriangles
Copy link
Member

We're now catching errors when sketches are first loaded by the engine, and just do an console.error. Would be good if there was some proper way for the engine to pass those errors on to whatever is consuming the engine (e.g. @hedron/desktop). Two options:

  • Have an errors part of engine state, which is updated whenever an error is caught
  • Have an onError method on the main engine class

I'm leaning towards just having a method, it's simpler and less opinionated

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