Skip to content

Commit f6a1cc5

Browse files
authored
Fix error message when SDL fails to initialize (#861)
1 parent 633e5c0 commit f6a1cc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/input/api/SDL/SDLControllerProvider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ SDLControllerProvider::SDLControllerProvider()
3232
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_LUNA, "1");
3333

3434
if (SDL_Init(SDL_INIT_JOYSTICK | SDL_INIT_GAMECONTROLLER | SDL_INIT_HAPTIC | SDL_INIT_EVENTS) < 0)
35-
throw std::runtime_error(fmt::format("couldn't initialize SDL: %s", SDL_GetError()));
35+
throw std::runtime_error(fmt::format("couldn't initialize SDL: {}", SDL_GetError()));
3636

3737

3838
if (SDL_GameControllerEventState(SDL_ENABLE) < 0) {

0 commit comments

Comments
 (0)