diff --git a/internal/buildengine/engine.go b/internal/buildengine/engine.go index 1a5b152e3b..8f27ace29c 100644 --- a/internal/buildengine/engine.go +++ b/internal/buildengine/engine.go @@ -639,6 +639,7 @@ func (e *Engine) buildWithCallback(ctx context.Context, callback buildCallback, ctx := log.ContextWithLogger(ctx, logger) err := e.tryBuild(ctx, mustBuild, moduleName, builtModules, schemas, callback) if err != nil { + terminal.UpdateModuleState(ctx, moduleName, terminal.BuildStateFailed) errCh <- err } return nil diff --git a/internal/terminal/status.go b/internal/terminal/status.go index 4e1bdd3729..39bb85a85b 100644 --- a/internal/terminal/status.go +++ b/internal/terminal/status.go @@ -58,6 +58,9 @@ func init() { block := func(int) string { return "✔" } + cross := func(int) string { + return "✘" + } empty := func(int) string { return "•" } @@ -67,7 +70,7 @@ func init() { BuildStateBuilt: block, BuildStateDeploying: spin, BuildStateDeployed: block, - BuildStateFailed: spin, + BuildStateFailed: cross, } }