From d6d97c7106d51c52f59ea537d61120122520d350 Mon Sep 17 00:00:00 2001 From: Mattt Thompson Date: Mon, 16 Jan 2012 14:21:32 -0800 Subject: [PATCH] Adding missing raise for exception in AFJSONDecode --- AFNetworking/AFJSONUtilities.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AFNetworking/AFJSONUtilities.h b/AFNetworking/AFJSONUtilities.h index a481bf6..204208e 100644 --- a/AFNetworking/AFJSONUtilities.h +++ b/AFNetworking/AFJSONUtilities.h @@ -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;