Copy the error mapping to the temporary mapping provider to ensure error handling is correct.

This commit is contained in:
Blake Watters
2012-01-19 09:35:46 -05:00
parent d69adccdd6
commit 4b46ada794

View File

@@ -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;