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

Issue 6300098: state: Continued rework of state errors for service.go. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by TheMue
Modified:
11 years, 10 months ago
Reviewers:
mp+110564
Visibility:
Public.

Description

state: Continued rework of state errors for service.go. service.go is the next file in the rework of the errors of the state package. https://code.launchpad.net/~themue/juju-core/go-state-errors-service/+merge/110564 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 14

Patch Set 2 : state: Continued rework of state errors for service.go. #

Total comments: 13

Patch Set 3 : state: Continued rework of state errors for service.go. #

Patch Set 4 : state: Continued rework of state errors for service.go. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -31 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M state/service.go View 1 2 15 chunks +32 lines, -22 lines 0 comments Download
M state/state.go View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M state/state_test.go View 1 2 3 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 9
TheMue
Please take a look.
11 years, 10 months ago (2012-06-15 16:19:54 UTC) #1
fwereade
LGTM assuming first fix, and maybe a bit of thought about the second https://codereview.appspot.com/6300098/diff/1/state/service.go File ...
11 years, 10 months ago (2012-06-15 20:47:48 UTC) #2
niemeyer
Good stuff. Some comments: https://codereview.appspot.com/6300098/diff/1/state/service.go File state/service.go (right): https://codereview.appspot.com/6300098/diff/1/state/service.go#newcode31 state/service.go:31: defer errorContextf(&err, "can't get the ...
11 years, 10 months ago (2012-06-16 01:35:56 UTC) #3
TheMue
Please take a look. https://codereview.appspot.com/6300098/diff/1/state/service.go File state/service.go (right): https://codereview.appspot.com/6300098/diff/1/state/service.go#newcode31 state/service.go:31: defer errorContextf(&err, "can't get the ...
11 years, 10 months ago (2012-06-18 16:13:24 UTC) #4
dave_cheney.net
Looks good. Please see my comments regarding named return values https://codereview.appspot.com/6300098/diff/6001/state/service.go File state/service.go (right): https://codereview.appspot.com/6300098/diff/6001/state/service.go#newcode69 ...
11 years, 10 months ago (2012-06-19 06:03:15 UTC) #5
niemeyer
Probably the last points: https://codereview.appspot.com/6300098/diff/6001/state/service.go File state/service.go (right): https://codereview.appspot.com/6300098/diff/6001/state/service.go#newcode226 state/service.go:226: var err error This is ...
11 years, 10 months ago (2012-06-20 14:29:51 UTC) #6
TheMue
Please take a look. https://codereview.appspot.com/6300098/diff/6001/state/service.go File state/service.go (right): https://codereview.appspot.com/6300098/diff/6001/state/service.go#newcode69 state/service.go:69: func (s *Service) addUnit(principalKey string) ...
11 years, 10 months ago (2012-06-20 14:47:46 UTC) #7
niemeyer
LGTM
11 years, 10 months ago (2012-06-20 15:18:18 UTC) #8
TheMue
11 years, 10 months ago (2012-06-20 15:21:22 UTC) #9
*** Submitted:

state: Continued rework of state errors for service.go.

service.go is the next file in the rework of the errors
of the state package.

R=fwereade, niemeyer, dfc
CC=
https://codereview.appspot.com/6300098
Sign in to reply to this message.

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