From 25013841d2c28eca33a8a1f94a33babad36d80aa Mon Sep 17 00:00:00 2001 From: Silvan Jegen Date: Mon, 26 Dec 2016 14:09:32 +0100 Subject: Fix "go vet" issue --- conf/scanner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.3