|
return error on no environment
Now, instead of just returning a cryptic filenotfound error, we return a more specific NoEnvError, indicating the environment doesn't exist. When the commands encounter that error, they notify the user, who is told how to create a new environment.
https://code.launchpad.net/~natefinch/juju-core/001-noenv-warning/+merge/178812
(do not edit description out of merge proposal)
Total comments: 8
Total comments: 25
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+219 lines, -156 lines) |
Patch |
 |
A |
[revision details]
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/addrelation.go
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/bootstrap.go
|
View
|
1
2
|
3 chunks |
+2 lines, -11 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/bootstrap_test.go
|
View
|
1
|
2 chunks |
+0 lines, -12 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/config_test.go
|
View
|
1
2
|
5 chunks |
+21 lines, -20 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/destroyrelation.go
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/destroyunit.go
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/environment.go
|
View
|
1
2
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
cmd/juju/environmentcommand.go
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/expose.go
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/get.go
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/init.go
|
View
|
1
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/init_test.go
|
View
|
1
2
|
2 chunks |
+20 lines, -18 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/main.go
|
View
|
1
2
|
2 chunks |
+74 lines, -36 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/publish.go
|
View
|
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/set.go
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/unexpose.go
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/upgradejuju.go
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
environs/config.go
|
View
|
1
2
|
2 chunks |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
M |
environs/config_test.go
|
View
|
1
2
|
10 chunks |
+60 lines, -52 lines |
0 comments
|
Download
|
Total messages: 14
|