Improve identifier cheek error logging in case live identifier is provided

This commit is contained in:
Andreas Linde 2012-12-30 17:07:47 +01:00
parent cd9989bb09
commit 3c168bc270

View File

@ -71,7 +71,11 @@
- (void)logInvalidIdentifier:(NSString *)environment {
if (!_appStoreEnvironment) {
NSLog(@"[HockeySDK] ERROR: The %@ is invalid! Please use the HockeyApp app identifier you find on the apps website on HockeyApp! The SDK is disabled!", environment);
if ([environment isEqualToString:@"liveIdentifier"]) {
NSLog(@"[HockeySDK] WARNING: The liveIdentifier is invalid! The SDK will be disabled when deployed to the App Store without setting a valid app identifier!");
} else {
NSLog(@"[HockeySDK] ERROR: The %@ is invalid! Please use the HockeyApp app identifier you find on the apps website on HockeyApp! The SDK is disabled!", environment);
}
}
}