Minimal error reporting for SDL_Init

This commit is contained in:
Marco Leise 2016-04-23 01:49:59 +02:00
parent d6bdd4ab1c
commit 02ee3ec7bc
1 changed files with 1 additions and 1 deletions

View File

@ -1749,7 +1749,7 @@ int sdlmain(string[] args) {
SDL_DisplayMode displayMode;
if (SDL_Init(SDL_INIT_VIDEO|SDL_INIT_TIMER|SDL_INIT_EVENTS|SDL_INIT_NOPARACHUTE) != 0) {
Log.e("Cannot init SDL2");
Log.e("Cannot init SDL2: ", SDL_GetError().to!string());
return 2;
}
scope(exit)SDL_Quit();