aboutsummaryrefslogtreecommitdiffstats
path: root/skate/xio/util.go
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-05-26 23:08:30 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-05-26 23:08:30 +0200
commited937d52281bc99b669492522b676a6339080ee3 (patch)
treebdcf27e99f872305734d3178bb373ee4e88bf791 /skate/xio/util.go
parent5b7050d71a23a2b84e5facb98f2fea3b4aa5123c (diff)
downloadrefcat-ed937d52281bc99b669492522b676a6339080ee3.tar.gz
refcat-ed937d52281bc99b669492522b676a6339080ee3.zip
log format errors
Diffstat (limited to 'skate/xio/util.go')
-rw-r--r--skate/xio/util.go3
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