Added retrieval of sdl error messages.