fixed try/catch syntax

This commit is contained in:
timkerchmar
2010-03-16 11:33:27 -04:00
parent e6543d90d2
commit 35d3634197

View File

@@ -267,8 +267,9 @@ static const NSString* kRKModelMapperRailsDateFormatString = @"MM/dd/yyyy";
NSString* propertyName = [elementToRelationshipMappings objectForKey:elementKeyPath];
id relationshipElements = nil;
@try
@try {
relationshipElements = [elements valueForKeyPath:elementKeyPath];
}
@catch (NSException* e) {
NSLog(@"Caught exception:%@ when trying valueForKeyPath with path:%@ for elements:%@", e, elementKeyPath, elements);
}