]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/csv: update ErrQuote message
authorJoe Tsai <joetsai@digital-static.net>
Mon, 23 Oct 2017 21:45:17 +0000 (14:45 -0700)
committerJoe Tsai <thebrokentoaster@gmail.com>
Tue, 24 Oct 2017 07:10:28 +0000 (07:10 +0000)
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>
src/encoding/csv/reader.go

index 3f8ff05814991779da9c504b78e8a21c41415e65..00b9bbffee0c5d6998a7ab320f33fa87a04f9010 100644 (file)
@@ -84,7 +84,7 @@ func (e *ParseError) Error() string {
 var (
        ErrTrailingComma = errors.New("extra delimiter at end of line") // Deprecated: No longer used.
        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")
 )