Return immediately after newly-added error condition
This commit is contained in:
parent
8501d83e6c
commit
119996b815
|
@ -77,6 +77,7 @@ func (c *WorkspaceNewCommand) Run(args []string) int {
|
|||
states, err := b.States()
|
||||
if err != nil {
|
||||
c.Ui.Error(fmt.Sprintf("Failed to get configured named states: %s", err))
|
||||
return 1
|
||||
}
|
||||
for _, s := range states {
|
||||
if newEnv == s {
|
||||
|
|
Loading…
Reference in New Issue