mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-26 00:41:27 -06:00
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
Block a user