terraform: nicer errors by using multierror properly
This commit is contained in:
parent
d0786d20dd
commit
10264a7def
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue