From 4da3290d507272ab2f3b5cbc9cbebc2673eba62e Mon Sep 17 00:00:00 2001 From: Blake Watters Date: Thu, 17 Mar 2011 22:20:04 -0400 Subject: [PATCH] added JSON and object to NSException when mapping fails because of bad input --- Code/ObjectMapping/RKObjectMapper.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/ObjectMapping/RKObjectMapper.m b/Code/ObjectMapping/RKObjectMapper.m index f84c6401ad..983b0c765a 100644 --- a/Code/ObjectMapping/RKObjectMapper.m +++ b/Code/ObjectMapping/RKObjectMapper.m @@ -167,7 +167,7 @@ - (void)mapObject:(id)model fromString:(NSString*)string { return; } else { [NSException raise:@"Unable to map from requested string" - format:@"The object was serialized into a %@. A dictionary of elements was expected.", [object class]]; + format:@"The object was serialized into a %@. A dictionary of elements was expected. (Object: %@) [Payload: %@]", [object class], object, string]; } }