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

Issue 92750043: juju/api.go: actually handle error (bug #1312136)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years ago by jameinel
Modified:
10 years ago
Reviewers:
wwitzel3, mp+217036
Visibility:
Public.

Description

juju/api.go: actually handle error (bug #1312136) If there is a problem reading the .jenv file, it can return an error, but we weren't paying attention to it. Instead we would end up getting a panic() a few lines down when we go to use a *Config that is actually nil. This may not be perfect (because I wasn't seeing errors as I would expect), but it is better than what we have. https://code.launchpad.net/~jameinel/juju-core/1.18-panic-parsing-jenv-1312136/+merge/217036 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : juju/api.go: actually handle error (bug #1312136) #

Total comments: 1

Patch Set 3 : juju/api.go: actually handle error (bug #1312136) #

Patch Set 4 : juju/api.go: actually handle error (bug #1312136) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -1 line) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M juju/api.go View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M juju/apiconn_test.go View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
M juju/export_test.go View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7
jameinel
Please take a look.
10 years ago (2014-04-24 12:20:26 UTC) #1
jameinel
Please take a look.
10 years ago (2014-04-24 12:26:51 UTC) #2
wwitzel3
LGTM
10 years ago (2014-04-24 13:30:10 UTC) #3
wwitzel3
Question https://codereview.appspot.com/92750043/diff/20001/juju/api.go File juju/api.go (right): https://codereview.appspot.com/92750043/diff/20001/juju/api.go#newcode258 juju/api.go:258: var cfg *config.Config What is the benefit of ...
10 years ago (2014-04-24 13:39:40 UTC) #4
jameinel
Please take a look.
10 years ago (2014-04-24 13:55:14 UTC) #5
jameinel
Please take a look.
10 years ago (2014-04-24 14:14:11 UTC) #6
wwitzel3
10 years ago (2014-04-24 14:24:39 UTC) #7
SGTM
Sign in to reply to this message.

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