summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvan Jegen <s.jegen@gmail.com>2016-12-26 14:09:32 +0100
committerSilvan Jegen <s.jegen@gmail.com>2016-12-26 14:09:32 +0100
commit25013841d2c28eca33a8a1f94a33babad36d80aa (patch)
treee0353773dda7c7880271d878a06161059e70b8c5
parent7ae918084e0a38041565d28b904515dc7695e66b (diff)
Fix "go vet" issue
-rw-r--r--conf/scanner.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/scanner.go b/conf/scanner.go
index 9bd7a4b..fd9868a 100644
--- a/conf/scanner.go
+++ b/conf/scanner.go
@@ -61,7 +61,7 @@ func (s *scanner) Scan() (token, error) {
r, rlen := utf8.DecodeRune(s.data[s.offset+processed:])
if r == utf8.RuneError {
if rlen == 1 {
- return token{}, fmt.Errorf("found invalid UTF8 at offset %d, before: %s", s.offset, s.data[s.offset])
+ return token{}, fmt.Errorf("found invalid UTF8 at offset %d, before: %s", s.offset, string(s.data[s.offset]))
} else if rlen == 0 {
return token{}, io.EOF
}