There are multiple references in the nim SDL2 mixer.nim file to
Error messages can be retrieved from Mix_GetError().
However, I can't seem to find this function defined in the mixer.nim file
How can I get the latest error string?
You can call sdl2.getError()
(from from the base sdl2 bindings) to get the latest error string.