mirror of
https://github.com/yawut/SDL.git
synced 2026-04-24 15:26:55 -05:00
testhotplug: Actually log the SDL_Error that occured on failures
This commit is contained in:
parent
48e9978f42
commit
80dbd8ae39
|
|
@ -73,12 +73,12 @@ main(int argc, char *argv[])
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user