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 2024-01-21 12:49:44 -06:00
parent e42db5b2b0
commit 7112bfb77f
1 changed files with 2 additions and 0 deletions

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 )
{