terraform: nicer errors by using multierror properly

This commit is contained in:
Mitchell Hashimoto 2015-02-07 09:55:11 -08:00
parent d0786d20dd
commit 10264a7def
1 changed files with 1 additions and 1 deletions

View File

@ -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