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
per review request
  • Loading branch information
mfwolffe committed Feb 12, 2024
1 parent 082d545 commit e33aa53
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/flatEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -651,10 +651,10 @@ 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}`;
// if (debugMsg){
// e.message = `${e.message}, debugMsg: ${debugMsg}`;
// }
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}`;
}
console.error('score not loaded from scoreId');
console.error('score', score);
console.error('orig', orig);
Expand Down

0 comments on commit e33aa53

Please sign in to comment.