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)