From 7230f982ac01307ad51e2d53012e260e890624ef Mon Sep 17 00:00:00 2001 From: Nathan McRae Date: Sat, 9 Mar 2024 09:57:27 -0800 Subject: [PATCH] Fix some minor line/column numbering issues --- SaneTsv/SaneTsv.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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