1
0
Fork 0
forked from eden-emu/eden

yuzu_cmd: Report more SDL errors

This commit is contained in:
Nikita Strygin 2023-12-30 13:18:42 +03:00
parent acc826f8fa
commit 07fd2ade25
2 changed files with 3 additions and 2 deletions

View file

@ -28,7 +28,8 @@ EmuWindow_SDL2_VK::EmuWindow_SDL2_VK(InputCommon::InputSubsystem* input_subsyste
SDL_SysWMinfo wm;
SDL_VERSION(&wm.version);
if (SDL_GetWindowWMInfo(render_window, &wm) == SDL_FALSE) {
LOG_CRITICAL(Frontend, "Failed to get information from the window manager");
LOG_CRITICAL(Frontend, "Failed to get information from the window manager: {}",
SDL_GetError());
std::exit(EXIT_FAILURE);
}