mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Don't crash if no JSON serializer is found, show an error in the log instead
This commit is contained in:
parent
07ccb6de00
commit
810ecb84b8
@ -690,13 +690,13 @@ static NSString *kHockeyErrorDomain = @"HockeyErrorDomain";
|
||||
[invocation invoke];
|
||||
[invocation getReturnValue:&feedResult];
|
||||
} else {
|
||||
NSLog(@"Error: You need a JSON Framework in your runtime!");
|
||||
[self doesNotRecognizeSelector:_cmd];
|
||||
error = [NSError errorWithDomain:kHockeyErrorDomain
|
||||
code:HockeyAPIServerReturnedEmptyResponse
|
||||
userInfo:[NSDictionary dictionaryWithObjectsAndKeys:@"You need a JSON Framework in your runtime for iOS4!", NSLocalizedDescriptionKey, nil]];
|
||||
}
|
||||
#endif
|
||||
|
||||
if (error) {
|
||||
BWHockeyLog(@"Error while parsing response feed: %@", [error localizedDescription]);
|
||||
[self reportError_:error];
|
||||
return nil;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user