Skip to content

Commit

Permalink
make report monkey patchable
Browse files Browse the repository at this point in the history
see #5243
  • Loading branch information
outofambit committed Jun 16, 2021
1 parent 5145535 commit 61b1c57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/friendly_errors/fes_core.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,15 +200,15 @@ if (typeof IS_MINIFIED !== 'undefined') {
/**
* Prints out a fancy, colorful message to the console log
*
* @method report
* @method _report
* @private
* @param {String} message the words to be said
* @param {String} [func] the name of the function to link
* @param {Number|String} [color] CSS color string or error type
*
* @return console logs
*/
const report = (message, func, color) => {
p5._report = (message, func, color) => {
// if p5._fesLogger is set ( i.e we are running tests ), use that
// instead of console.log
const log =
Expand Down

0 comments on commit 61b1c57

Please sign in to comment.