Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Commit

Permalink
Update flatEditor.js
Browse files Browse the repository at this point in the history
only debugMsg and console.error
  • Loading branch information
mfwolffe committed Feb 12, 2024
1 parent e33aa53 commit 31fcc62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/flatEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ function FlatEditor({
// **** Hi - even with optional chaining, line 654 causing runtime errors (I *think* when scores get locked).
// Otherwise chaining resolves rare, seemingly random errors accessing message property

e?.message = `flat error: ${e.message}, not loaded from scoreId, score: ${JSON.stringify(score)}, orig: ${orig}, colors: ${colors}`;
// e?.message = `flat error: ${e.message}, not loaded from scoreId, score: ${JSON.stringify(score)}, orig: ${orig}, colors: ${colors}`;
if (debugMsg){
e.message = `${e.message}, debugMsg: ${debugMsg}`;
}
Expand Down

0 comments on commit 31fcc62

Please sign in to comment.