diff options
Diffstat (limited to 'skate')
-rw-r--r-- | skate/xio/util.go | 3 |
1 files changed, 3 insertions, 0 deletions
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 |