From bb39338008650741b818755603cc3921d6c55452 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 7 Apr 2013 13:02:44 +0200 Subject: [PATCH] Platform: better diagnostic in Sdl2Application::tryCreateContext(). --- src/Platform/Sdl2Application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Platform/Sdl2Application.cpp b/src/Platform/Sdl2Application.cpp index d5e5b3855..8289ab5dd 100644 --- a/src/Platform/Sdl2Application.cpp +++ b/src/Platform/Sdl2Application.cpp @@ -94,7 +94,7 @@ bool Sdl2Application::tryCreateContext(Configuration* configuration) { SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, configuration->size().x(), configuration->size().y(), SDL_WINDOW_OPENGL|flags))) { - Error() << "Platform::Sdl2Application::tryCreateContext(): cannot create window"; + Error() << "Platform::Sdl2Application::tryCreateContext(): cannot create window:" << SDL_GetError(); std::exit(2); }