command/validate: bail if can't initialize build [GH-2139]

This commit is contained in:
Mitchell Hashimoto 2015-05-29 16:09:37 -07:00
parent f1aad91f26
commit c49fe672b3
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ func (c *ValidateCommand) Run(args []string) int {
c.Ui.Error(fmt.Sprintf(
"Failed to initialize build '%s': %s",
n, err))
return 1
}
builds = append(builds, b)