From 751d7521cffb6271d3da7bdb2ed592e96c6ef8cf Mon Sep 17 00:00:00 2001 From: Mattt Thompson Date: Mon, 7 Oct 2013 15:54:22 -0700 Subject: [PATCH] [Issue #1423] Fixing compound serializer error handling --- AFNetworking/AFURLResponseSerialization.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/AFNetworking/AFURLResponseSerialization.m b/AFNetworking/AFURLResponseSerialization.m index cefd54b..39ad33a 100644 --- a/AFNetworking/AFURLResponseSerialization.m +++ b/AFNetworking/AFURLResponseSerialization.m @@ -643,8 +643,10 @@ static UIImage * AFInflatedImageFromResponseWithDataAtScale(NSHTTPURLResponse *r continue; } - id responseObject = [serializer responseObjectForResponse:response data:data error:error]; + NSError *serializerError = nil; + id responseObject = [serializer responseObjectForResponse:response data:data error:&serializerError]; if (responseObject) { + *error = serializerError; return responseObject; } }