Skip to content

Commit 146f48a

Browse files
authored
Merge pull request #7888 from quinton-ashley/main
Respect p5.disableFriendlyErrors
2 parents 8a13cf4 + 64bc57a commit 146f48a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/core/main.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -848,9 +848,11 @@ class p5 {
848848
value: newValue,
849849
writable: true
850850
});
851-
log(
852-
`You just changed the value of "${prop}", which was a p5 function. This could cause problems later if you're not careful.`
853-
);
851+
if (!p5.disableFriendlyErrors) {
852+
log(
853+
`You just changed the value of "${prop}", which was a p5 function. This could cause problems later if you're not careful.`
854+
);
855+
}
854856
}
855857
});
856858
} catch (e) {

0 commit comments

Comments
 (0)