Update build.go

This commit is contained in:
Adrien Delorme 2020-05-08 18:01:34 +02:00
parent e6aac8cd6f
commit b35ec44d06

View file

@ -139,9 +139,9 @@ func (c *BuildCommand) RunContext(buildCtx context.Context, cfg *BuildArgs) int
Except: cfg.Except,
})
if ret := writeDiags(c.Ui, nil, diags); ret != 0 {
return ret
}
// here, something could have gone wrong but we still want to run valid
// builds.
ret = writeDiags(c.Ui, nil, diags)
if cfg.Debug {
c.Ui.Say("Debug mode enabled. Builds will not be parallelized.")