From 082958845b1283bf57189ff52c3b8fab09fedceb Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 25 Jan 2024 17:57:28 -0800 Subject: fail if the token is missing --- cmd/ghabilling/main.go | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd/ghabilling/main.go') diff --git a/cmd/ghabilling/main.go b/cmd/ghabilling/main.go index bb5f41a..4865a4a 100644 --- a/cmd/ghabilling/main.go +++ b/cmd/ghabilling/main.go @@ -57,6 +57,7 @@ func main() { if tokenFlag == "" { fmt.Fprintf(os.Stderr, "The API token is not set\n") + os.Exit(1) } ctx := context.TODO() -- cgit 1.4.1