aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/csv
diff options
context:
space:
mode:
authorJoe Tsai <joetsai@digital-static.net>2017-10-23 14:45:17 -0700
committerJoe Tsai <thebrokentoaster@gmail.com>2017-10-24 07:10:28 +0000
commit8c532f5fc457642e0067017dc0701e7a8ee63bb2 (patch)
treef0436f5618884d4f30f13214cc18741cda3fe7e5 /src/encoding/csv
parent744da64947188fa849ab6228f9d5fded5f7a1bef (diff)
downloadgo-8c532f5fc457642e0067017dc0701e7a8ee63bb2.tar.gz
go-8c532f5fc457642e0067017dc0701e7a8ee63bb2.zip
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>
Diffstat (limited to 'src/encoding/csv')
-rw-r--r--src/encoding/csv/reader.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encoding/csv/reader.go b/src/encoding/csv/reader.go
index 3f8ff05814..00b9bbffee 100644
--- a/src/encoding/csv/reader.go
+++ b/src/encoding/csv/reader.go
@@ -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")
)