-Fix error message for missing member
-Fix exception not throwing for bad char after semi-colon
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user