diff --git a/SaneTsv/SaneTsv.cs b/SaneTsv/SaneTsv.cs index d673656..25ef493 100644 --- a/SaneTsv/SaneTsv.cs +++ b/SaneTsv/SaneTsv.cs @@ -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(); var records = new List(); - int line = 1; + int line = 2; int currentLineStart = 0; // Go back to the start of the current line