Skip to content

Commit eb4036f

Browse files
chore: avoid silent exit by printing server error (#3095)
printing server startup error if an error was discovered. Previously it will just exit silently if theres an unknown flag caught by Cobra. 🛠️ Fixes #3063 --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 36ab2a9 commit eb4036f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cmd/root.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ func Execute() {
8787
opts := internal.NewToolboxOptions()
8888

8989
if err := NewCommand(opts).Execute(); err != nil {
90+
fmt.Fprintf(opts.IOStreams.ErrOut, "Error: %v\n", err)
9091
exit := 1
9192
os.Exit(exit)
9293
}

0 commit comments

Comments
 (0)