]> git.lizzy.rs Git - nothing.git/blobdiff - src/error.c
TODO(#128)
[nothing.git] / src / error.c
index fc600d04d8ce0777e54e63588c5f94bfd4eaf256..120dbbd5c184a21266a529ce1b665a7b9a95cf42 100644 (file)
@@ -3,6 +3,7 @@
 #include <assert.h>
 
 #include <SDL2/SDL.h>
+#include <SDL2/SDL_mixer.h>
 
 #include "./error.h"
 
@@ -41,6 +42,10 @@ void print_error_msg(error_type_t error_type, const char *user_prefix)
         fprintf(stderr, "%s: %s", user_prefix, SDL_GetError());
         break;
 
+    case ERROR_TYPE_SDL2_MIXER:
+        fprintf(stderr, "%s: %s", user_prefix, Mix_GetError());
+        break;
+
     default: {}
     }
 }