Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(728)

Issue 81260043: code review 81260043: encoding/json: include Offset in SyntaxError.Error() (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years ago by minux1
Modified:
9 years, 10 months ago
Reviewers:
rsc, bradfitz
CC:
golang-codereviews
Visibility:
Public.

Description

encoding/json: include Offset in SyntaxError.Error() Fixes issue 7636.

Patch Set 1 #

Patch Set 2 : diff -r ed3e89f781c1 https://code.google.com/p/go #

Patch Set 3 : diff -r ed3e89f781c1 https://code.google.com/p/go #

Patch Set 4 : diff -r a33823379ef0 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M src/pkg/encoding/json/scanner.go View 1 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 6
minux1
Hello bradfitz@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
10 years ago (2014-03-27 05:14:08 UTC) #1
bradfitz
I'm not sure this is worth it, especially this late into Go 1.3. A byte ...
10 years ago (2014-03-27 18:56:46 UTC) #2
minux1
On Thu, Mar 27, 2014 at 2:56 PM, <bradfitz@golang.org> wrote: > I'm not sure this ...
10 years ago (2014-03-27 19:09:20 UTC) #3
bradfitz
On Thu, Mar 27, 2014 at 12:09 PM, minux <minux.ma@gmail.com> wrote: > > On Thu, ...
10 years ago (2014-03-27 19:24:03 UTC) #4
bradfitz
R=close Until Go 1.4.
10 years ago (2014-04-14 23:48:58 UTC) #5
rsc
9 years, 11 months ago (2014-05-21 14:31:57 UTC) #6
not lgtm
the offset is often misleading because you are inside some bigger thing.
it's also a byte offset which is often useless to a person reading the error.
the one thing it is good for is extracting the offending text from the original
input argument, and for that it only needs to be an exported field.
so i think this is working as intended.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b