diff options
author | Kevin Burke <kev@inburke.com> | 2020-11-27 13:55:27 -0800 |
---|---|---|
committer | Joe Tsai <thebrokentoaster@gmail.com> | 2020-12-01 22:51:45 +0000 |
commit | 283d65413db75edbc4691c4fecf23228509436f0 (patch) | |
tree | 4831d9aa2c2bde40021a296201a0f8502ed4617c /src/encoding | |
parent | 7fca39aa05ad3c60abac1ae51ae9847dfbe017d6 (diff) | |
download | go-283d65413db75edbc4691c4fecf23228509436f0.tar.gz go-283d65413db75edbc4691c4fecf23228509436f0.zip |
encoding/json: revert "add "json: " prefix to SyntaxError messages"
This reverts commit 6af088bfc66c13143c9ef46b4cf0805df77a8fbe.
Reason for revert: Broke many tests inside Google which implies many
tests were broken outside of Google as well. The tests may be brittle
but still would require work to change and it's not clear it's worth
the benefit.
Updates #36221
Fixes #42675
Change-Id: Id3a14eb37e7119f5abe50e80dfbf120fdc44db72
Reviewed-on: https://go-review.googlesource.com/c/go/+/273747
Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
Trust: Joe Tsai <thebrokentoaster@gmail.com>
Diffstat (limited to 'src/encoding')
-rw-r--r-- | src/encoding/json/scanner.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encoding/json/scanner.go b/src/encoding/json/scanner.go index c3f5f6372d..9dc1903e2d 100644 --- a/src/encoding/json/scanner.go +++ b/src/encoding/json/scanner.go @@ -47,7 +47,7 @@ type SyntaxError struct { Offset int64 // error occurred after reading Offset bytes } -func (e *SyntaxError) Error() string { return "json: " + e.msg } +func (e *SyntaxError) Error() string { return e.msg } // A scanner is a JSON scanning state machine. // Callers call scan.reset and then pass bytes in one at a time |