Make copy to clipboard in Windows error dialog include error message

There is a copy to clipboard option but the error itself wasn't printed
to the console so it wasn't copied to the clipboard.

Unix-like platforms print it to the console so it's written in
crashlog.txt.
This commit is contained in:
Zack Middleton committed 2024-08-28 17:52:54 -04:00
1 parent e42db5b2b0
commit 7112bfb77f
1 file changed
+2
+2
View File
@@ -727,6 +727,8 @@ Display an error message
*/
void Sys_ErrorDialog( const char *error )
{
Sys_Print( va( "%s\n", error ) );
if( Sys_Dialog( DT_YES_NO, va( "%s. Copy console log to clipboard?", error ),
"Error" ) == DR_YES )
{