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

Issue 179125: code review 179125: Propagate error to the caller in json.Marshal. Fixes is... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 4 months ago by Ivan Krasin
Modified:
12 years, 3 months ago
Reviewers:
CC:
rsc, imkrasin, golang-dev
Visibility:
Public.

Description

Propagate error to the caller in json.Marshal. Fixes issue 445.

Patch Set 1 #

Patch Set 2 : code review 179125: Propagate error to the caller in json.Marshal. Fixes is... #

Total comments: 11

Patch Set 3 : code review 179125: Propagate error to the caller in json.Marshal. Fixes is... #

Total comments: 1

Patch Set 4 : code review 179125: Propagate error to the caller in json.Marshal. Fixes is... #

Patch Set 5 : code review 179125: Propagate error to the caller in json.Marshal. Fixes is... #

Patch Set 6 : code review 179125: Propagate error to the caller in json.Marshal. Fixes is... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -6 lines) Patch
M src/pkg/json/struct.go View 1 2 3 4 5 2 chunks +7 lines, -4 lines 0 comments Download
M src/pkg/json/struct_test.go View 1 2 3 chunks +14 lines, -2 lines 0 comments Download

Messages

Total messages: 8
Ivan Krasin
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review the following change.
14 years, 4 months ago (2009-12-22 10:12:33 UTC) #1
rsc
Thanks for fixing this. While you're here, let's allow interface{} when it contains types that ...
14 years, 4 months ago (2009-12-22 17:15:55 UTC) #2
Ivan Krasin
http://codereview.appspot.com/179125/diff/6/7 File src/pkg/json/struct.go (right): http://codereview.appspot.com/179125/diff/6/7#newcode406 src/pkg/json/struct.go:406: err = &MarshalError{val.Type()} On 2009/12/22 17:15:55, rsc wrote: > ...
14 years, 4 months ago (2009-12-23 16:12:55 UTC) #3
rsc
> Probably, the compiler should be enhanced to able to compile this: > case *reflect.InterfaceValue, ...
14 years, 4 months ago (2009-12-23 16:48:28 UTC) #4
imkrasin
On 2009/12/23 16:48:28, rsc wrote: > > Probably, the compiler should be enhanced to able ...
14 years, 4 months ago (2009-12-24 10:30:09 UTC) #5
rsc
LGTM but you need to hg sync / hg upload before I can apply it. ...
14 years, 4 months ago (2010-01-05 22:16:37 UTC) #6
imkrasin
Done. I think you could submit it. On 2010/01/05 22:16:37, rsc wrote: > LGTM > ...
14 years, 4 months ago (2010-01-06 15:15:04 UTC) #7
rsc
14 years, 4 months ago (2010-01-06 15:25:22 UTC) #8
*** Submitted as http://code.google.com/p/go/source/detail?r=e29d95da0388 ***

Propagate error to the caller in json.Marshal. Fixes issue 445.

R=rsc, imkrasin
CC=golang-dev
http://codereview.appspot.com/179125

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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