From 77005cba4b2d7c66c2373efa7ee2080a73b631e4 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Sat, 25 May 2024 15:00:11 +0200 Subject: [PATCH] sys and print what --- src/chat_gui4.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/chat_gui4.cpp b/src/chat_gui4.cpp index 18ecd56..2f9df15 100644 --- a/src/chat_gui4.cpp +++ b/src/chat_gui4.cpp @@ -28,6 +28,7 @@ #include #include #include +#include #include namespace Components { @@ -170,8 +171,13 @@ void ChatGui4::setClipboardData(std::vector mime_types, std::shared SDL_SetClipboardData(clipboard_callback, nullptr, this, tmp_mimetype_list.data(), tmp_mimetype_list.size()); } catch (const std::runtime_error& e) { std::cerr << "CG error: setting clipboard data threw runtime_error!\n"; + std::cerr << "what: " << e.what() << "\n"; + } catch (const std::system_error& e) { + std::cerr << "CG error: setting clipboard data threw system_error!\n"; + std::cerr << "what: " << e.what() << "\n"; } catch (const std::exception& e) { std::cerr << "CG error: setting clipboard data threw exception!\n"; + std::cerr << "what: " << e.what() << "\n"; } catch (...) { std::cerr << "CG error: setting clipboard data threw!\n"; }