Skip to content

Commit

Permalink
Fix new line in crash log when SDL message box cannot be created (Cle…
Browse files Browse the repository at this point in the history
…verRaven#70767) (CleverRaven#73777)

Co-authored-by: Jianxiang Wang (王健翔) <[email protected]>
  • Loading branch information
Procyonae and Qrox authored May 14, 2024
1 parent 42bd923 commit 9f55fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ extern "C" {
#if defined(TILES)
if( SDL_ShowSimpleMessageBox( SDL_MESSAGEBOX_ERROR, "Error",
log_text.str().c_str(), nullptr ) != 0 ) {
log_text << "Error creating SDL message box: " << SDL_GetError() << '\n';
log_text << "\nError creating SDL message box: " << SDL_GetError();
}
#endif
#endif
Expand Down

0 comments on commit 9f55fd0

Please sign in to comment.