summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}