Skip to content

Commit

Permalink
throw better exception when cannot open windows clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Arian8j2 committed Sep 26, 2023
1 parent e055349 commit 7c9ca9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/detail/windows.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ClipboardWindows : public ClipboardInterface {
public:
OpenCloseClipboardRaii() {
if (!OpenClipboard(0))
throw exception("Cannot open clipboard");
throw WindowsException("Cannot open clipboard");
}

~OpenCloseClipboardRaii() { CloseClipboard(); }
Expand Down

0 comments on commit 7c9ca9a

Please sign in to comment.