diff --git a/commands.go b/commands.go index c713c0043d..223d7baf1d 100644 --- a/commands.go +++ b/commands.go @@ -194,11 +194,12 @@ func cmdCreate(c *cli.Context) { if c.GlobalBool("debug") { log.Fatal(err) } else { - log.Warnf("Removing provisioned machine. Use --debug to prevent removal.") + log.Warnf("Removing created machine. You can run machine with the --debug flag to avoid this.") // we know there was an error so do not check for the error on removal // instead we will Fatal with a message to prevent spamming with error messages - store.Remove(name, true) - log.Fatalf("You will want to check the provider to make sure the machine and associated resources were properly removed.") + _ = store.Remove(name, true) + log.Warn("You will want to check the provider to make sure the machine and associated resources were properly removed.") + log.Fatal("Error creating machine") } } if err := store.SetActive(host); err != nil {