Explicitly mention SDL in the error message caused by SDL subsystem initialization failure.

This commit is contained in:
Alex Szpakowski
2015-03-26 14:51:47 -03:00
parent 86d41620dd
commit cffa899e03
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ const char *Event::getName() const
Event::Event()
{
if (SDL_InitSubSystem(SDL_INIT_EVENTS) < 0)
throw love::Exception("%s", SDL_GetError());
throw love::Exception("Could not initialize SDL events subsystem (%s)", SDL_GetError());
SDL_AddEventWatch(watchAppEvents, this);
}