Skip to content

Commit 632e508

Browse files
authored
Add check to disable friendly errors
1 parent 2ca9be6 commit 632e508

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/friendly_errors/fes_core.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ function fesCore(p5, fn){
227227
* @param {Number|String} [color] CSS color code
228228
*/
229229
p5._friendlyError = function(message, func, color) {
230+
if (p5.disableFriendlyErrors) return;
230231
p5._report(message, func, color);
231232
};
232233

0 commit comments

Comments
 (0)