From e8d5fba256b016c5ea266fd6c28bf37fd2ed8adc Mon Sep 17 00:00:00 2001 From: ALX99 <46844683+ALX99@users.noreply.github.com> Date: Fri, 23 Aug 2024 22:34:44 +0900 Subject: [PATCH] fix: correct os.Exit code from -1 to 1 in main.go As per the os.Exit documentation, the exit code should be in the rage [0, 125] --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 4e10b82..6c955d3 100644 --- a/main.go +++ b/main.go @@ -11,6 +11,6 @@ func main() { _, err := cli.Cli() if err != nil { fmt.Printf("%s\n", err) - os.Exit(-1) + os.Exit(1) } }