Respect p5.disableFriendlyErrors
setting when overriding p5 global variables
#7819
Open
1 of 17 tasks
Labels
Most appropriate sub-area of p5.js?
p5.js version
1.11.7
Web browser and version
Chrome
Operating system
macOS
Steps to reproduce this
User's
p5.disableFriendlyErrors
setting should be respected when overriding p5 global variables.Example:
https://editor.p5js.org/quinton-ashley/sketches/ca-G8kD1O
The if statement requiring that
p5.disableFriendlyErrors
be false is correct, but this also needs to be checked before printing the error message, since users could setp5.disableFriendlyErrors = true
after that.The text was updated successfully, but these errors were encountered: