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