Skip to content

Commit

Permalink
Merge pull request #2267 from hashicorp/f-flatten-apply-errors
Browse files Browse the repository at this point in the history
command/apply: flatten multierrors
  • Loading branch information
phinze committed Jun 8, 2015
2 parents 2cee26b + 18924d2 commit 5a28dad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion command/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"sort"
"strings"

"github.com/hashicorp/go-multierror"
"github.com/hashicorp/terraform/config/module"
"github.com/hashicorp/terraform/terraform"
)
Expand Down Expand Up @@ -207,7 +208,7 @@ func (c *ApplyCommand) Run(args []string) int {
"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))
multierror.Flatten(applyErr)))
return 1
}

Expand Down

0 comments on commit 5a28dad

Please sign in to comment.