Skip to content

Commit

Permalink
fix: console dropping some errors messages (#3838)
Browse files Browse the repository at this point in the history
  • Loading branch information
wesbillman authored Dec 21, 2024
1 parent c0b8c4e commit b74b3c5
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 b74b3c5

Please sign in to comment.