From 081b61ec8162abec4682e949a518483226941e24 Mon Sep 17 00:00:00 2001 From: worldspawn Date: Fri, 16 Oct 2026 18:26:29 -0600 Subject: [PATCH] Propagate error when failing to initialize video subsystem --- Source.SDLManager/SDL3_LauncherManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source.SDLManager/SDL3_LauncherManager.cs b/Source.SDLManager/SDL3_LauncherManager.cs index 01653669..42f682c0 100644 --- a/Source.SDLManager/SDL3_LauncherManager.cs +++ b/Source.SDLManager/SDL3_LauncherManager.cs @@ -61,7 +61,7 @@ internal static unsafe void InitializeIfRequired() { SDL3.SDL_SetLogPriorities(SDL_LogPriority.SDL_LOG_PRIORITY_TRACE); SDL3.SDL_SetAppMetadata(Path.GetFileNameWithoutExtension(Environment.ProcessPath), "N/A", "N/A"); if (!SDL3.SDL_InitSubSystem(SDL_InitFlags.SDL_INIT_VIDEO)) - throw new Exception("Couldn't initialize SDL3's video subsystem."); + throw new Exception($"Couldn't initialize SDL3's video subsystem: ${SDL3.SDL_GetError()}"); ready = true; }