diff --git a/Src/Newtonsoft.Json.Tests/Serialization/JsonSerializerTest.cs b/Src/Newtonsoft.Json.Tests/Serialization/JsonSerializerTest.cs index 35e885258..dd17ea72a 100644 --- a/Src/Newtonsoft.Json.Tests/Serialization/JsonSerializerTest.cs +++ b/Src/Newtonsoft.Json.Tests/Serialization/JsonSerializerTest.cs @@ -377,7 +377,7 @@ public void CoercedEmptyStringWithRequired() [Test] public void CoercedEmptyStringWithRequired_DisallowNull() { - ExceptionAssert.Throws(() => { JsonConvert.DeserializeObject("{requiredProperty:''}"); }, "Required property 'RequiredProperty' expects a non-null value. Path '', line 1, position 21."); + ExceptionAssert.Throws(() => { JsonConvert.DeserializeObject("{requiredProperty:''}"); }, "Property 'RequiredProperty' expects a non-null value. Path '', line 1, position 21."); } [Test] diff --git a/Src/Newtonsoft.Json/Serialization/JsonSerializerInternalReader.cs b/Src/Newtonsoft.Json/Serialization/JsonSerializerInternalReader.cs index d8c163d3e..5b55c09ac 100644 --- a/Src/Newtonsoft.Json/Serialization/JsonSerializerInternalReader.cs +++ b/Src/Newtonsoft.Json/Serialization/JsonSerializerInternalReader.cs @@ -2632,7 +2632,7 @@ private void EndProcessProperty(object newObject, JsonReader reader, JsonObjectC } if (resolvedRequired == Required.DisallowNull) { - throw JsonSerializationException.Create(reader, "Required property '{0}' expects a non-null value.".FormatWith(CultureInfo.InvariantCulture, property.PropertyName)); + throw JsonSerializationException.Create(reader, "Property '{0}' expects a non-null value.".FormatWith(CultureInfo.InvariantCulture, property.PropertyName)); } break; }