From c49fe672b3c38f6062c28f6477e4313927daac68 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 29 May 2015 16:09:37 -0700 Subject: [PATCH] command/validate: bail if can't initialize build [GH-2139] --- command/validate.go | 1 + 1 file changed, 1 insertion(+) diff --git a/command/validate.go b/command/validate.go index 5d7e16c5d..c8f333fcf 100644 --- a/command/validate.go +++ b/command/validate.go @@ -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)