command/apply: clearer that in error state is updated

This commit is contained in:
Mitchell Hashimoto 2014-07-17 15:18:00 -07:00
parent ba4435f99c
commit f78f97647a
1 changed files with 8 additions and 1 deletions

View File

@ -122,7 +122,14 @@ func (c *ApplyCommand) Run(args []string) int {
} }
if applyErr != nil { if applyErr != nil {
c.Ui.Error(fmt.Sprintf("Error applying plan: %s", applyErr)) c.Ui.Error(fmt.Sprintf(
"Error applying plan:\n\n"+
"%s\n\n"+
"Terraform does not automatically rollback in the face of errors.\n"+
"Instead, your Terraform state file has been partially updated with\n"+
"any resources that successfully completed. Please address the error\n"+
"above and apply again to incrementally change your infrastructure.",
applyErr))
return 1 return 1
} }