Skip to content

Commit

Permalink
Fix swallowed errors in command package.
Browse files Browse the repository at this point in the history
  • Loading branch information
alrs committed Jul 11, 2017
1 parent a12daf5 commit 8501d83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions command/plugins_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ import (

func TestPluginPath(t *testing.T) {
td, err := ioutil.TempDir("", "tf")
if err != nil {
t.Fatal(err)
}
defer os.RemoveAll(td)
defer testChdir(t, td)()

Expand Down
3 changes: 3 additions & 0 deletions command/workspace_new.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ 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))
}
for _, s := range states {
if newEnv == s {
c.Ui.Error(fmt.Sprintf(envExists, newEnv))
Expand Down

0 comments on commit 8501d83

Please sign in to comment.