aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/json/scanner.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/encoding/json/scanner.go')
-rw-r--r--src/encoding/json/scanner.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encoding/json/scanner.go b/src/encoding/json/scanner.go
index 9dc1903e2d..c3f5f6372d 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 e.msg }
+func (e *SyntaxError) Error() string { return "json: " + e.msg }
// A scanner is a JSON scanning state machine.
// Callers call scan.reset and then pass bytes in one at a time