p5canvas
p5canvas copied to clipboard
Getting P5.JS' friendly error system into the console
Recent versions of P5.js have excellent error messages. We should look into getting them into the console.
I just learned that this is called "Friendly Error System": https://github.com/processing/p5.js/blob/main/contributor_docs/friendly_error_system.md
I fiddled around with _fesLogger for a good long while, until I realized that minified p5 just strips the debug logging stuff. I now included the full, unminified p5.js, and did no other modifications to p5canvas. This is the result:
I will now look into getting the filenames cleaner. Would you be fine with shipping full p5.js instead of minified @pixelkind?
whoopsie! it noticed!
getting somewhere :-)