fix(lint): keep caught variable in scope after catch refactor
This commit is contained in:
2 files changed
+4
-4
No files matched your search
@@ -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()) {
|
||||
|
||||
Reference in new issue
Block a user