From 09cca0bf80e4429cd5d23226576eb79a06da067f Mon Sep 17 00:00:00 2001 From: Vincent Heuken Date: Sun, 23 Jun 2013 16:45:23 -0700 Subject: [PATCH] more detailed error message when SDL fails to initialize --- apps/openmw/engine.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/openmw/engine.cpp b/apps/openmw/engine.cpp index 6c7247845..c0b212550 100644 --- a/apps/openmw/engine.cpp +++ b/apps/openmw/engine.cpp @@ -152,7 +152,9 @@ OMW::Engine::Engine(Files::ConfigurationManager& configurationManager) //might this be related to http://bugzilla.libsdl.org/show_bug.cgi?id=748 ? SDL_SetHint(SDL_HINT_RENDER_DRIVER, "software"); if(SDL_Init(flags) != 0) - throw std::runtime_error("Couldn't initialize SDL!"); + { + throw std::runtime_error("Could not initialize SDL! " + std::string(SDL_GetError())); + } } }