Skip to content

Commit

Permalink
fix: console dropping some errors messages
Browse files Browse the repository at this point in the history
  • Loading branch information
wesbillman committed Dec 20, 2024
1 parent c0b8c4e commit 7b4b93a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions frontend/cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ func main() {
sm := terminal.NewStatusManager(ctx)
csm.statusManager = optional.Some(sm)
ctx = sm.IntoContext(ctx)
defer sm.Close()
}
rpc.InitialiseClients(cli.Authenticators, cli.Insecure)

Expand Down Expand Up @@ -171,7 +170,14 @@ func main() {
ctx = bindContext(ctx, kctx)

err = kctx.Run(ctx)
kctx.FatalIfErrorf(err)

if sm, ok := csm.statusManager.Get(); ok {
sm.Close()
}

if err != nil {
kctx.FatalIfErrorf(err)
}
}

func createKongApplication(cli any, csm *currentStatusManager) *kong.Kong {
Expand Down

0 comments on commit 7b4b93a

Please sign in to comment.