Skip to content

Commit 7ec6bfc

Browse files
carlos-zamoraDHowett
authored andcommitted
catch failure to open clipboard (#2590)
1 parent cb02ca7 commit 7ec6bfc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/cascadia/TerminalApp/App.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1547,8 +1547,12 @@ namespace winrt::TerminalApp::implementation
15471547
dataPack.SetHtmlFormat(htmlData);
15481548
}
15491549

1550-
Clipboard::SetContent(dataPack);
1551-
Clipboard::Flush();
1550+
try
1551+
{
1552+
Clipboard::SetContent(dataPack);
1553+
Clipboard::Flush();
1554+
}
1555+
CATCH_LOG();
15521556
});
15531557
}
15541558

0 commit comments

Comments
 (0)