From ed937d52281bc99b669492522b676a6339080ee3 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Wed, 26 May 2021 23:08:30 +0200 Subject: log format errors --- skate/xio/util.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'skate/xio/util.go') diff --git a/skate/xio/util.go b/skate/xio/util.go index c0439e5..681f260 100644 --- a/skate/xio/util.go +++ b/skate/xio/util.go @@ -2,6 +2,7 @@ package xio import ( "bufio" + "fmt" "io" "os" "strings" @@ -38,6 +39,8 @@ func TabsToMap(r io.Reader, sep string, kCol, vCol int) (map[string]string, erro k := strings.TrimSpace(fields[kCol-1]) v := strings.TrimSpace(fields[vCol-1]) m[k] = v + } else { + return nil, fmt.Errorf("invalid line: %v", line) } } return m, nil -- cgit v1.2.3