mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-05-23 03:13:47 +08:00
Copy the error mapping to the temporary mapping provider to ensure error handling is correct.
This commit is contained in:
@@ -255,6 +255,9 @@
|
||||
mappingProvider = [RKObjectMappingProvider mappingProvider];
|
||||
NSString *rootKeyPath = configuredObjectMapping.rootKeyPath ? configuredObjectMapping.rootKeyPath : @"";
|
||||
[mappingProvider setMapping:configuredObjectMapping forKeyPath:rootKeyPath];
|
||||
|
||||
// Copy the error mapping from our configured mappingProvider
|
||||
mappingProvider.errorMapping = self.mappingProvider.errorMapping;
|
||||
} else {
|
||||
RKLogDebug(@"No object mapping provider, using mapping provider from parent object manager to perform KVC mapping");
|
||||
mappingProvider = self.mappingProvider;
|
||||
|
||||
Reference in New Issue
Block a user