Navigation Menu

Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #121 from aaronbrethorst/master
Browse files Browse the repository at this point in the history
Raise an exception if JSON generation capability doesn't exist
  • Loading branch information
Mattt Thompson committed Nov 21, 2011
2 parents 1f750a3 + ac811fc commit c1bc698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AFNetworking/AFJSONUtilities.h
Expand Up @@ -82,7 +82,7 @@ static NSData * AFJSONEncode(id object, NSError **error) {
[invocation getReturnValue:&data];
} 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 generation functionality available", nil) userInfo:userInfo];
[[NSException exceptionWithName:NSInternalInconsistencyException reason:NSLocalizedString(@"No JSON generation functionality available", nil) userInfo:userInfo] raise];
}

return data;
Expand Down

0 comments on commit c1bc698

Please sign in to comment.