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

Issue 5674051: state: add some more informative error messages

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by rog
Modified:
12 years, 2 months ago
Reviewers:
mp+93153, niemeyer, fwereade
Visibility:
Public.

Description

It's only a start. https://code.launchpad.net/~rogpeppe/juju/state-add-errors/+merge/93153 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -22 lines) Patch
M state/open.go View 1 chunk +3 lines, -2 lines 1 comment Download
M state/state.go View 1 chunk +17 lines, -20 lines 2 comments Download

Messages

Total messages: 3
rog
Please take a look.
12 years, 2 months ago (2012-02-15 07:44:44 UTC) #1
fwereade
LGTM (as a start ;)).
12 years, 2 months ago (2012-02-15 08:08:56 UTC) #2
niemeyer
12 years, 2 months ago (2012-02-16 18:41:36 UTC) #3
https://codereview.appspot.com/5674051/diff/1/state/open.go
File state/open.go (right):

https://codereview.appspot.com/5674051/diff/1/state/open.go#newcode32
state/open.go:32: return nil, fmt.Errorf("zookeeper dial %q failed: %v", addrs,
err)
Let's please fix this in gozk instead. There's no information being added here
that can't be done there.

https://codereview.appspot.com/5674051/diff/1/state/state.go
File state/state.go (right):

https://codereview.appspot.com/5674051/diff/1/state/state.go#newcode148
state/state.go:148: return fmt.Errorf("cannot check existence of /initialized:
%v", err)
Ditto.

https://codereview.appspot.com/5674051/diff/1/state/state.go#newcode160
state/state.go:160: err = fmt.Errorf("cannot create %s: %v", name, err)
Ditto.
Sign in to reply to this message.

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