sys and print what
This commit is contained in:
		| @@ -28,6 +28,7 @@ | ||||
| #include <iomanip> | ||||
| #include <sstream> | ||||
| #include <stdexcept> | ||||
| #include <system_error> | ||||
| #include <variant> | ||||
|  | ||||
| namespace Components { | ||||
| @@ -170,8 +171,13 @@ void ChatGui4::setClipboardData(std::vector<std::string> 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"; | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user