From 1ce0a211babf42b84e0ef28b3fa6b4e9f3f1382c Mon Sep 17 00:00:00 2001 From: Oliver Letterer Date: Thu, 2 May 2013 20:03:17 +0200 Subject: [PATCH] Using self.error instead of self.JSONError in AFJSONRequestOperation. --- AFNetworking/AFJSONRequestOperation.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AFNetworking/AFJSONRequestOperation.m b/AFNetworking/AFJSONRequestOperation.m index ac7423a..6db5f70 100644 --- a/AFNetworking/AFJSONRequestOperation.m +++ b/AFNetworking/AFJSONRequestOperation.m @@ -120,7 +120,7 @@ static dispatch_queue_t json_request_operation_processing_queue() { dispatch_async(json_request_operation_processing_queue(), ^{ id JSON = self.responseJSON; - if (self.JSONError) { + if (self.error) { if (failure) { dispatch_async(self.failureCallbackQueue ?: dispatch_get_main_queue(), ^{ failure(self, self.error);