mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Explicitly mention SDL in the error message caused by SDL subsystem initialization failure.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user