Skip to content

Commit 6368af4

Browse files
committed
Merge branch 'fix/fasttype-pad' of https://github.com/SolidOS/solid-ui into fix/fasttype-pad
2 parents 745b327 + bc561c5 commit 6368af4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/pad.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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 '" +

0 commit comments

Comments
 (0)