From a2bc693af578543eb479d1e21f4d6413e0d82efd Mon Sep 17 00:00:00 2001 From: Edgar Simo Date: Mon, 11 Aug 2008 15:29:28 +0000 Subject: [PATCH] Simplified some error messages. --- src/haptic/darwin/SDL_syshaptic.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/haptic/darwin/SDL_syshaptic.c b/src/haptic/darwin/SDL_syshaptic.c index aef255b23..6fe7cf651 100644 --- a/src/haptic/darwin/SDL_syshaptic.c +++ b/src/haptic/darwin/SDL_syshaptic.c @@ -195,18 +195,17 @@ SDL_SYS_HapticInit(void) if (refCF) { if (!CFNumberGetValue(refCF, kCFNumberLongType, &SDL_hapticlist[numhaptics].usagePage)) - SDL_SetError("Haptic: CFNumberGetValue error retrieving pDevice->usagePage."); + SDL_SetError("Haptic: Recieving device's usage page."); refCF = CFDictionaryGetValue(hidProperties, CFSTR(kIOHIDPrimaryUsageKey)); if (refCF) { if (!CFNumberGetValue(refCF, kCFNumberLongType, &SDL_hapticlist[numhaptics].usage)) - SDL_SetError("Haptic: CFNumberGetValue error retrieving pDevice->usage."); + SDL_SetError("Haptic: Recieving device's usage."); } } CFRelease(hidProperties); } - /* Device has been added. */ numhaptics++; }