testhotplug: Actually log the SDL_Error that occured on failures
authorEdward Rudd <urkle@outoforder.cc>
Mon, 03 Feb 2014 23:08:53 -0500
changeset 8166d1be9ce49463
parent 8165 2b8ba3d53a67
child 8167 82ec2a95e664
testhotplug: Actually log the SDL_Error that occured on failures
test/testhotplug.c
     1.1 --- a/test/testhotplug.c	Mon Feb 03 23:01:19 2014 -0500
     1.2 +++ b/test/testhotplug.c	Mon Feb 03 23:08:53 2014 -0500
     1.3 @@ -73,12 +73,12 @@
     1.4                                  SDL_Log("Joy Haptic Opened\n");
     1.5                                  if (SDL_HapticRumbleInit( haptic ) != 0)
     1.6                                  {
     1.7 -                                    SDL_Log("Could not init Rumble!");
     1.8 +                                    SDL_Log("Could not init Rumble!: %s\n", SDL_GetError());
     1.9                                      SDL_HapticClose(haptic);
    1.10                                      haptic = NULL;
    1.11                                  }
    1.12                              } else {
    1.13 -                                SDL_Log("Joy haptic open FAILED!\n");
    1.14 +                                SDL_Log("Joy haptic open FAILED!: %s\n", SDL_GetError());
    1.15                              }
    1.16                          }
    1.17                          else