1
0
mirror of https://github.com/json-iterator/go.git synced 2025-07-15 23:54:21 +02:00

#185 add jsoniter.Valid

This commit is contained in:
Tao Wen
2017-10-10 08:57:02 +08:00
parent 0149a5cf4a
commit 6240e1e798
9 changed files with 36 additions and 17 deletions

View File

@ -215,7 +215,7 @@ func (iter *Iterator) ReportError(operation string, msg string) {
}
context := string(iter.buf[contextStart:contextEnd])
iter.Error = fmt.Errorf("%s: %s, error found in #%v byte of ...|%s|..., bigger context ...|%s|...",
operation, msg, iter.head - peekStart, parsing, context)
operation, msg, iter.head-peekStart, parsing, context)
}
// CurrentBuffer gets current buffer as string for debugging purpose