1
0
mirror of https://github.com/golang/go synced 2024-11-13 16:20:21 -07:00

encoding/csv: update ErrQuote message

The ErrQuote variable is only returned when a parsing error
occurs within a quoted string. Make that clear in the message.

Change-Id: I06ad5a9edb41afedde193c4f8b93551bb8342bbb
Reviewed-on: https://go-review.googlesource.com/72794
Reviewed-by: Avelino <t@avelino.xxx>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Joe Tsai 2017-10-23 14:45:17 -07:00 committed by Joe Tsai
parent 744da64947
commit 8c532f5fc4

View File

@ -84,7 +84,7 @@ func (e *ParseError) Error() string {
var ( var (
ErrTrailingComma = errors.New("extra delimiter at end of line") // Deprecated: No longer used. ErrTrailingComma = errors.New("extra delimiter at end of line") // Deprecated: No longer used.
ErrBareQuote = errors.New("bare \" in non-quoted-field") ErrBareQuote = errors.New("bare \" in non-quoted-field")
ErrQuote = errors.New("extraneous or missing \" in field") ErrQuote = errors.New("extraneous or missing \" in quoted-field")
ErrFieldCount = errors.New("wrong number of fields") ErrFieldCount = errors.New("wrong number of fields")
) )