-Fixed error when wrapping an exception in a JsonConverter

This commit is contained in:
James Newton-King
2013-12-23 22:42:38 +13:00
parent d529190b46
commit 40c24307de
8 changed files with 186 additions and 6 deletions
@@ -174,6 +174,10 @@ namespace Newtonsoft.Json.Serialization
}
else
{
// clear context in case serializer is being used inside a converter
// if the converter wraps the error then not clearing the context will cause this error:
// "Current error context error is different to requested error."
ClearErrorContext();
throw;
}
}