Skip to content

Commit cd0c1ca

Browse files
authored
Merge pull request #204 from wrldspawn/fix/sdl-init-error
Propagate error when failing to initialize video subsystem
2 parents 017ad84 + 081b61e commit cd0c1ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Source.SDLManager/SDL3_LauncherManager.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ internal static unsafe void InitializeIfRequired() {
6161
SDL3.SDL_SetLogPriorities(SDL_LogPriority.SDL_LOG_PRIORITY_TRACE);
6262
SDL3.SDL_SetAppMetadata(Path.GetFileNameWithoutExtension(Environment.ProcessPath), "N/A", "N/A");
6363
if (!SDL3.SDL_InitSubSystem(SDL_InitFlags.SDL_INIT_VIDEO))
64-
throw new Exception("Couldn't initialize SDL3's video subsystem.");
64+
throw new Exception($"Couldn't initialize SDL3's video subsystem: ${SDL3.SDL_GetError()}");
6565

6666
ready = true;
6767
}

0 commit comments

Comments
 (0)