-Formatting
-Build
This commit is contained in:
@@ -41,7 +41,7 @@ namespace Newtonsoft.Json
|
||||
|
||||
internal struct JsonPosition
|
||||
{
|
||||
private static readonly char[] SpecialCharacters = {'.', ' ', '[', ']', '(', ')'};
|
||||
private static readonly char[] SpecialCharacters = { '.', ' ', '[', ']', '(', ')' };
|
||||
|
||||
internal JsonContainerType Type;
|
||||
internal int Position;
|
||||
@@ -145,7 +145,9 @@ namespace Newtonsoft.Json
|
||||
message = message.Trim();
|
||||
|
||||
if (!message.EndsWith('.'))
|
||||
{
|
||||
message += ".";
|
||||
}
|
||||
|
||||
message += " ";
|
||||
}
|
||||
@@ -153,11 +155,13 @@ namespace Newtonsoft.Json
|
||||
message += "Path '{0}'".FormatWith(CultureInfo.InvariantCulture, path);
|
||||
|
||||
if (lineInfo != null && lineInfo.HasLineInfo())
|
||||
{
|
||||
message += ", line {0}, position {1}".FormatWith(CultureInfo.InvariantCulture, lineInfo.LineNumber, lineInfo.LinePosition);
|
||||
}
|
||||
|
||||
message += ".";
|
||||
|
||||
return message;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user