Skip to content

Commit

Permalink
add sdl error message on failed init
Browse files Browse the repository at this point in the history
  • Loading branch information
cmosher01 committed Jul 12, 2015
1 parent 130d2b4 commit 825c748
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui.cpp
Expand Up @@ -29,6 +29,7 @@
GUI::GUI() {
const int result = SDL_Init(SDL_INIT_TIMER | SDL_INIT_AUDIO | SDL_INIT_VIDEO);
if (result != 0) {
std::cerr << "Failed to initialize SDL: " << SDL_GetError() << std::endl;
throw GUI::NotInitException();
}

Expand Down

0 comments on commit 825c748

Please sign in to comment.