File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -210,13 +210,13 @@ export function notepad(
210210 } , 1000 )
211211 } else {
212212 log ( ' removePart FAILED ' + chunk + ': ' + errorMessage )
213- log ( " removePart was deleteing :'" + del )
213+ log ( " removePart was deleting :'" + del )
214214 setPartStyle ( part , 'color: black; background-color: #fdd;' ) // failed
215215 const res = response
216216 ? ( response as any ) . status
217217 : ' [no response field] '
218218 complain (
219- 'Error ' + res + ' saving changes: ' + ( errorMessage as any ) . true
219+ 'Error ' + res + ' saving changes: ' + String ( errorMessage )
220220 ) // upstream,
221221 // updater.requestDownstreamAction(padDoc, reloadAndSync);
222222 }
@@ -349,7 +349,8 @@ export function notepad(
349349 // DEBUGGING ONLY
350350 if ( part . lastSent ) {
351351 if ( old !== part . lastSent ) {
352- throw new Error (
352+ // Non-fatal: log a warning instead of throwing, to avoid crashing the pad UI.
353+ console . warn (
353354 "Out of order, last sent expected '" +
354355 old +
355356 "' but found '" +
You can’t perform that action at this time.
0 commit comments