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 invoke];
|
||||||
[invocation getReturnValue:&feedResult];
|
[invocation getReturnValue:&feedResult];
|
||||||
} else {
|
} else {
|
||||||
NSLog(@"Error: You need a JSON Framework in your runtime!");
|
error = [NSError errorWithDomain:kHockeyErrorDomain
|
||||||
[self doesNotRecognizeSelector:_cmd];
|
code:HockeyAPIServerReturnedEmptyResponse
|
||||||
|
userInfo:[NSDictionary dictionaryWithObjectsAndKeys:@"You need a JSON Framework in your runtime for iOS4!", NSLocalizedDescriptionKey, nil]];
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
BWHockeyLog(@"Error while parsing response feed: %@", [error localizedDescription]);
|
|
||||||
[self reportError_:error];
|
[self reportError_:error];
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user