From 7469e3efc72366e1955c0abad4327cced4f06b32 Mon Sep 17 00:00:00 2001 From: Robert Date: Thu, 2 Jul 2020 22:58:35 +0200 Subject: [PATCH] Added SDL_GetError() to init error --- src/sdlf/Window.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sdlf/Window.cpp b/src/sdlf/Window.cpp index 83f67f4..7f27c71 100644 --- a/src/sdlf/Window.cpp +++ b/src/sdlf/Window.cpp @@ -20,7 +20,8 @@ namespace sf std::ostringstream errorStream; errorStream << "One or more required subsystems were not initialized. (Expected " << SDLF_REQUIRED_SUBSYSTEMS << " but got " << mask << " instead). \n" << - "Make sure to call SDL_Init(" << SDLF_REQUIRED_SUBSYSTEMS << ") before instantiating sf::IWindow."; + "Make sure to call SDL_Init(" << SDLF_REQUIRED_SUBSYSTEMS << ") before instantiating sf::IWindow. \n" << + "The most recent SDL_Error is: " << SDL_GetError() << std::endl; m_pCurrentException = const_cast(errorStream.str().c_str()); return; }