Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(76)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Issue 97870044: Added json encoded for ServerErrors

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 8 months ago by hduran
Modified:
11 years, 8 months ago
Reviewers:
mp+217860, gz
Visibility:
Public.
Added json encoded for ServerErrors added jsonEncode function to novaservice that tries to convert the given error into a ServerError and call its AsJSON method or wrap the given error into a 500 ServerError which will contain the original error message. https://code.launchpad.net/~hduran-8/goose/json_encoded_errors/+merge/217860 Requires: https://code.launchpad.net/~hduran-8/goose/testservice_errors/+merge/217818 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Added json encoded for ServerErrors #

Total comments: 4

Patch Set 3 : Added json encoded for ServerErrors #

Created: 11 years, 8 months ago
Download [raw] [tar.bz2]
Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -9 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M http/client.go View 1 2 2 chunks +21 lines, -5 lines 0 comments Download
M http/client_test.go View 1 2 1 chunk +41 lines, -0 lines 0 comments Download
M testservices/errors.go View 1 2 chunks +12 lines, -0 lines 0 comments Download
M testservices/novaservice/service.go View 1 1 chunk +8 lines, -0 lines 0 comments Download
M testservices/novaservice/service_http.go View 1 3 chunks +5 lines, -3 lines 0 comments Download
M testservices/novaservice/service_http_test.go View 1 1 chunk +1 line, -1 line 0 comments Download
Total messages: 4
|
hduran
Please take a look.
11 years, 8 months ago (2014年05月01日 01:09:14 UTC) #1
Please take a look.
Sign in to reply to this message.
hduran
Please take a look.
11 years, 8 months ago (2014年05月02日 15:39:55 UTC) #2
Please take a look.
Sign in to reply to this message.
gz
LGTM. https://codereview.appspot.com/97870044/diff/20001/http/client.go File http/client.go (right): https://codereview.appspot.com/97870044/diff/20001/http/client.go#newcode62 http/client.go:62: return nil, err We seem to not be ...
11 years, 8 months ago (2014年05月02日 16:19:48 UTC) #3
LGTM.
https://codereview.appspot.com/97870044/diff/20001/http/client.go
File http/client.go (right):
https://codereview.appspot.com/97870044/diff/20001/http/client.go#newcode62
http/client.go:62: return nil, err
We seem to not be able to hit this error branch, that's fine.
https://codereview.appspot.com/97870044/diff/20001/http/client.go#newcode64
http/client.go:64: response.Title = key
Add break here. May as well exit early if we're passed something with many top
level keys.
https://codereview.appspot.com/97870044/diff/20001/http/client.go#newcode69
http/client.go:69: return nil, fmt.Errorf("Unexpected response format: %q",
jsonBytes)
"Unparsable json error body"
https://codereview.appspot.com/97870044/diff/20001/http/client_test.go
File http/client_test.go (right):
https://codereview.appspot.com/97870044/diff/20001/http/client_test.go#newcod...
http/client_test.go:191: c.Assert(unmarshalled.Message, Equals, "A Meaningful
error")
These attribute compares should be Check not Assert.
Sign in to reply to this message.
hduran
Please take a look.
11 years, 8 months ago (2014年05月02日 16:29:34 UTC) #4
Please take a look.
Sign in to reply to this message.
|
Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /