Skip to content

Commit

Permalink
Display UI binary error messages instead of silently exiting (#2055)
Browse files Browse the repository at this point in the history
Display error msg for UI binary if port already occupied

Fixes #1755
  • Loading branch information
kaankabalak committed Apr 16, 2024
1 parent 31cb90b commit 6f99550
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/operator/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,12 @@ func startOperatorServer(ctx *cli.Context) error {

defer server.Shutdown()

return server.Serve()
if err = server.Serve(); err != nil {
server.Logf("error serving API: %v", err)
return err
}

return nil
}

func loadAllCerts(ctx *cli.Context) error {
Expand Down

0 comments on commit 6f99550

Please sign in to comment.