Skip to content

Commit

Permalink
testhotplug: Actually log the SDL_Error that occured on failures
Browse files Browse the repository at this point in the history
  • Loading branch information
urkle committed Feb 4, 2014
1 parent 8512f1b commit e6dce68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/testhotplug.c
Expand Up @@ -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
Expand Down

0 comments on commit e6dce68

Please sign in to comment.