From f6a1cc598e3f93c6c8f5a7c71da3406fde26816f Mon Sep 17 00:00:00 2001 From: Chris Purnell <46072656+chrispurnell@users.noreply.github.com> Date: Fri, 16 Jun 2023 18:57:27 +0100 Subject: [PATCH] Fix error message when SDL fails to initialize (#861) --- src/input/api/SDL/SDLControllerProvider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/api/SDL/SDLControllerProvider.cpp b/src/input/api/SDL/SDLControllerProvider.cpp index fcec0f7e..9e0c09b5 100644 --- a/src/input/api/SDL/SDLControllerProvider.cpp +++ b/src/input/api/SDL/SDLControllerProvider.cpp @@ -32,7 +32,7 @@ SDLControllerProvider::SDLControllerProvider() SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_LUNA, "1"); if (SDL_Init(SDL_INIT_JOYSTICK | SDL_INIT_GAMECONTROLLER | SDL_INIT_HAPTIC | SDL_INIT_EVENTS) < 0) - throw std::runtime_error(fmt::format("couldn't initialize SDL: %s", SDL_GetError())); + throw std::runtime_error(fmt::format("couldn't initialize SDL: {}", SDL_GetError())); if (SDL_GameControllerEventState(SDL_ENABLE) < 0) {