Merge pull request #178 from kgn/master
JSON exception created but never raised: fix #175
This commit is contained in:
commit
87b5d5a349
@ -143,7 +143,7 @@ static id AFJSONDecode(NSData *data, NSError **error) {
|
||||
[invocation getReturnValue:&JSON];
|
||||
} else {
|
||||
NSDictionary *userInfo = [NSDictionary dictionaryWithObject:NSLocalizedString(@"Please either target a platform that supports NSJSONSerialization or add one of the following libraries to your project: JSONKit, SBJSON, or YAJL", nil) forKey:NSLocalizedRecoverySuggestionErrorKey];
|
||||
[NSException exceptionWithName:NSInternalInconsistencyException reason:NSLocalizedString(@"No JSON parsing functionality available", nil) userInfo:userInfo];
|
||||
[[NSException exceptionWithName:NSInternalInconsistencyException reason:NSLocalizedString(@"No JSON parsing functionality available", nil) userInfo:userInfo] raise];
|
||||
}
|
||||
|
||||
return JSON;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user