Skip to content

Commit 33aa922

Browse files
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 921f705 commit 33aa922

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pad.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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)