Skip to content

Commit 68f9013

Browse files
committed
fix: properly exit with code 1 on error
1 parent 2f8fb8c commit 68f9013

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.go

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package main
22

33
import (
44
"log/slog"
5+
"os"
56

67
"github.com/alecthomas/kong"
78
"kastelo.dev/ezapt/internal/publish"
@@ -12,5 +13,6 @@ func main() {
1213
ctx := kong.Parse(&cli)
1314
if err := ctx.Run(); err != nil {
1415
slog.Error("Failed to run", "error", err)
16+
os.Exit(1)
1517
}
1618
}

0 commit comments

Comments
 (0)