aboutsummaryrefslogtreecommitdiff
path: root/src/strings
diff options
context:
space:
mode:
authorEugene Kalinin <e.v.kalinin@gmail.com>2019-06-28 23:59:49 +0300
committerIan Lance Taylor <iant@golang.org>2019-10-16 22:58:08 +0000
commit02196d36575636a64f868ee0ffe6bb61442e7245 (patch)
tree79a31755b7516b27eef4ec7e0c76bfead383633a /src/strings
parent943df4f629560f5c33474dd82e2b534ea5f8653f (diff)
downloadgo-02196d36575636a64f868ee0ffe6bb61442e7245.tar.xz
encoding/json: correct caller's name in encoding errors
1. Change mapencode.encode to use fmt.Error rather than MarshalerError. MarshalerError refer to MarshalJSON, but mapencode.encode does not use that. 2. Add sourceFunc field to MarshalerError to record the name of the function that creates the error, so that the Error method can report it correctly. Fixes #29753 Change-Id: I186c2fac8470ae2f9e300501de3730face642230 Reviewed-on: https://go-review.googlesource.com/c/go/+/184119 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/strings')
0 files changed, 0 insertions, 0 deletions