pixelkind/p5canvas

Getting P5.JS' friendly error system into the console

Closed this issue · 6 comments

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:

grafik

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!
grafik

getting somewhere :-)

grafik

Fixed thanks to you @ccoenen :)