From 431a19eeb4081e44d6fbf341fbb19b969bc876a7 Mon Sep 17 00:00:00 2001 From: Alec Thomas Date: Wed, 25 Sep 2024 11:34:25 +1000 Subject: [PATCH] fix: don't panic on CLI error (#2816) --- frontend/cli/main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/cli/main.go b/frontend/cli/main.go index 6cabda0a6e..781c4c642d 100644 --- a/frontend/cli/main.go +++ b/frontend/cli/main.go @@ -73,9 +73,7 @@ func main() { app := createKongApplication(&cli) kctx, err := app.Parse(os.Args[1:]) - if err != nil { - panic(err) - } + app.FatalIfErrorf(err) if !cli.Plain { sm := terminal.NewStatusManager(ctx)