From 10264a7defd9e9299665e0bb617c2021c158a35b Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 7 Feb 2015 09:55:11 -0800 Subject: [PATCH] terraform: nicer errors by using multierror properly --- terraform/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/context.go b/terraform/context.go index a326195a4e..4edb1237b1 100644 --- a/terraform/context.go +++ b/terraform/context.go @@ -90,7 +90,7 @@ func (c *Context2) Validate() ([]string, []error) { // Build the graph graph, err := c.GraphBuilder().Build(RootModulePath) if err != nil { - return nil, []error{err} + return nil, multierror.Append(errs, err).Errors } // Walk the graph