mirror of https://github.com/docker/docs.git
logging updates from @nathanleclaire
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
parent
414f94b7d1
commit
df5ecadf80
|
@ -194,11 +194,12 @@ func cmdCreate(c *cli.Context) {
|
||||||
if c.GlobalBool("debug") {
|
if c.GlobalBool("debug") {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
} else {
|
} 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
|
// 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
|
// instead we will Fatal with a message to prevent spamming with error messages
|
||||||
store.Remove(name, true)
|
_ = store.Remove(name, true)
|
||||||
log.Fatalf("You will want to check the provider to make sure the machine and associated resources were properly removed.")
|
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 {
|
if err := store.SetActive(host); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue