[Issue #1423] Fixing compound serializer error handling
This commit is contained in:
parent
4162685da7
commit
751d7521cf
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user