Skip to content

Commit

Permalink
fix: build failed indicator (#2850)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas authored Sep 26, 2024
1 parent e7250c3 commit 80ad0a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions internal/buildengine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion internal/terminal/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ func init() {
block := func(int) string {
return "✔"
}
cross := func(int) string {
return "✘"
}
empty := func(int) string {
return "•"
}
Expand All @@ -67,7 +70,7 @@ func init() {
BuildStateBuilt: block,
BuildStateDeploying: spin,
BuildStateDeployed: block,
BuildStateFailed: spin,
BuildStateFailed: cross,
}
}

Expand Down

0 comments on commit 80ad0a3

Please sign in to comment.