-Fix error message for missing member

-Fix exception not throwing for bad char after semi-colon
This commit is contained in:
JamesNK
2009-01-06 08:03:46 +00:00
parent a6e925b0f3
commit 308a0c516b
4 changed files with 41 additions and 13 deletions
+1 -1
View File
@@ -423,7 +423,7 @@ namespace Newtonsoft.Json
else
{
if (_missingMemberHandling == MissingMemberHandling.Error)
throw new JsonSerializationException("Could not find member '{0}' on object of type '{1}'".FormatWith(CultureInfo.InvariantCulture, memberName, targetType.GetType().Name));
throw new JsonSerializationException("Could not find member '{0}' on object of type '{1}'".FormatWith(CultureInfo.InvariantCulture, memberName, targetType.Name));
reader.Skip();
}