SDL: jack: set error message when failing to open jack client

From 2521ba47fe2523cf5f6d0d65437c239f67a96255 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Fri, 22 Mar 2024 01:22:39 +0100
Subject: [PATCH] jack: set error message when failing to open jack client

---
 src/audio/jack/SDL_jackaudio.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/audio/jack/SDL_jackaudio.c b/src/audio/jack/SDL_jackaudio.c
index 3fb16fdede90f..726b22d91312d 100644
--- a/src/audio/jack/SDL_jackaudio.c
+++ b/src/audio/jack/SDL_jackaudio.c
@@ -416,6 +416,7 @@ static SDL_bool JACK_Init(SDL_AudioDriverImpl *impl)
         jack_client_t *client = JACK_jack_client_open("SDL", JackNoStartServer, &status, NULL);
         if (!client) {
             UnloadJackLibrary();
+            SDL_SetError("Can't open JACK client");
             return SDL_FALSE;
         }
         JACK_jack_client_close(client);