mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-05 22:20:30 -04:00
improve SDL error reporting
This commit is contained in:
parent
93ec526482
commit
46c85d8f30
2 changed files with 3 additions and 2 deletions
|
@ -74,7 +74,7 @@ SDLContext::SDLContext() {
|
|||
void handle_sdl_error(const char *msg) {
|
||||
char buff[512];
|
||||
|
||||
snprintf(buff, sizeof(buff), "SDL critical error (check video driver): %s %s",msg, SDL_GetError());
|
||||
snprintf(buff, sizeof(buff), "SDL critical error: %s %s",msg, SDL_GetError());
|
||||
throw std::runtime_error(buff);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue