mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-19 16:16:45 +00:00
fix(lint): keep caught variable in scope after catch refactor
This commit is contained in:
@@ -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