Skip to content

Commit

Permalink
Make copy to clipboard in Windows error dialog include error message
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
zturtleman committed Aug 28, 2024
1 parent e42db5b commit 7112bfb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/sys/sys_win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down

0 comments on commit 7112bfb

Please sign in to comment.