fix(lint): keep caught variable in scope after catch refactor

This commit is contained in:
t8y2
2026-10-14 14:51:49 +08:00
parent 4e04c557d6
commit 41ec800910
2 changed files with 4 additions and 4 deletions
@@ -2999,8 +2999,8 @@ async function confirmPasteTableImpl() {
break;
}
pasteFailCount++;
firstPasteError ??= e;
console.error(`Failed to paste table "${entry.sourceName}" -> "${targetName}":`, e);
firstPasteError ??= caught;
console.error(`Failed to paste table "${entry.sourceName}" -> "${targetName}":`, caught);
}
}
if (cloneFailure) {
@@ -5022,8 +5022,8 @@ async function confirmPasteTableImpl() {
break;
}
pasteFailCount++;
firstPasteError ??= e;
console.error(`Failed to paste table "${entry.sourceName}" -> "${targetName}":`, e);
firstPasteError ??= caught;
console.error(`Failed to paste table "${entry.sourceName}" -> "${targetName}":`, caught);
}
}
for (const refreshTarget of refreshTargets.values()) {