Skip to content

Commit

Permalink
Return with non-zero status on error. (#517)
Browse files Browse the repository at this point in the history
  • Loading branch information
dennwc authored Feb 7, 2025
1 parent 1029d1c commit 3abcd54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .nanpa/exit-1.kdl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
patch type="added" "return non-zero exit code on error"
4 changes: 3 additions & 1 deletion cmd/lk/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ import (

"github.com/urfave/cli/v3"

livekitcli "github.com/livekit/livekit-cli"
"github.com/livekit/protocol/logger"
lksdk "github.com/livekit/server-sdk-go/v2"

livekitcli "github.com/livekit/livekit-cli"
)

func main() {
Expand Down Expand Up @@ -87,6 +88,7 @@ func main() {

if err := app.Run(ctx, os.Args); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}

Expand Down

0 comments on commit 3abcd54

Please sign in to comment.