Add logging offset for Json parsing errors

This commit is contained in:
Wojtek Figat
2020-12-30 23:50:07 +01:00
parent 29a8abd996
commit 3973452ec3
7 changed files with 20 additions and 18 deletions

View File

@@ -1016,7 +1016,7 @@ public:
document.Parse(json.Get(), json.Length());
if (document.HasParseError())
{
Log::JsonParseException(document.GetParseError());
Log::JsonParseException(document.GetParseError(), document.GetErrorOffset());
DebugLog::ThrowException("Failed to parse Json.");
}