Fix some minor line/column numbering issues

This commit is contained in:
Nathan McRae 2024-03-09 09:57:27 -08:00
parent e38baa9167
commit 4148475031

View File

@ -179,7 +179,7 @@ public class SaneTsv
{
if (format == FormatType.SIMPLE_TSV)
{
throw new Exception($"Header {fields.Count} contain ':', which is not allowed for column names");
throw new Exception($"Header {j} contains ':', which is not allowed for column names");
}
columnTypeString = columnString.Split(":").Last();
columnName = columnString.Substring(0, columnString.Length - columnTypeString.Length - 1);
@ -939,7 +939,7 @@ public class SaneTsv
var fields = new List<byte[]>();
var records = new List<string[]>();
int line = 1;
int line = 2;
int currentLineStart = 0;
// Go back to the start of the current line