diff --git a/apps/desktop/src/components/objects/ObjectBrowser.vue b/apps/desktop/src/components/objects/ObjectBrowser.vue index aaba0b263a..8363b0b2b1 100644 --- a/apps/desktop/src/components/objects/ObjectBrowser.vue +++ b/apps/desktop/src/components/objects/ObjectBrowser.vue @@ -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) { diff --git a/apps/desktop/src/components/sidebar/SidebarTreeRuntimeHost.vue b/apps/desktop/src/components/sidebar/SidebarTreeRuntimeHost.vue index d108f5d62d..5fb48e907a 100644 --- a/apps/desktop/src/components/sidebar/SidebarTreeRuntimeHost.vue +++ b/apps/desktop/src/components/sidebar/SidebarTreeRuntimeHost.vue @@ -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()) {