From f78f97647af7315e784e660325d847217fcdd96e Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 17 Jul 2014 15:18:00 -0700 Subject: [PATCH] command/apply: clearer that in error state is updated --- command/apply.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/command/apply.go b/command/apply.go index a6dc368fb..84d7aad04 100644 --- a/command/apply.go +++ b/command/apply.go @@ -122,7 +122,14 @@ func (c *ApplyCommand) Run(args []string) int { } 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 }