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

Issue 12347044: Show same error for no default env

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by natefinch
Modified:
10 years ago
Reviewers:
dimitern, mp+178288
Visibility:
Public.

Description

Show same error for no default env When you run juju with no default config file, it should give the same error regardless of the command you're running. To do that, I have ReadEnviron wrap the file not found error it used to return in a new type, so that further up the stack we can check for it, and notify the user appropriately. https://code.launchpad.net/~natefinch/juju-core/juju-core/+merge/178288 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : Show same error for no default env #

Patch Set 3 : Show same error for no default env #

Patch Set 4 : Show same error for no default env #

Patch Set 5 : Show same error for no default env #

Patch Set 6 : Show same error for no default env #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -16 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M juju/api.go View 1 2 3 chunks +25 lines, -14 lines 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
M scripts/win-installer/setup.iss View 1 2 1 chunk +1 line, -1 line 0 comments Download
M version/version.go View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6
dimitern
LGTM, apart from a few trivial suggestions below https://codereview.appspot.com/12347044/diff/1/cmd/juju/init.go File cmd/juju/init.go (right): https://codereview.appspot.com/12347044/diff/1/cmd/juju/init.go#newcode8 cmd/juju/init.go:8: "launchpad.net/gnuflag" ...
10 years, 9 months ago (2013-08-05 12:19:11 UTC) #1
natefinch
Fixed dimitern's suggestions, also took rogpeppe's suggestions to remove the changes to cmd.go and put ...
10 years, 9 months ago (2013-08-05 17:35:59 UTC) #2
natefinch
Please take a look.
10 years ago (2014-04-24 19:50:07 UTC) #3
natefinch
Please take a look.
10 years ago (2014-04-24 19:54:47 UTC) #4
natefinch
Please take a look.
10 years ago (2014-04-24 20:11:49 UTC) #5
natefinch
10 years ago (2014-04-24 20:13:05 UTC) #6
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