about summary refs log tree commit diff
path: root/cmd/ghabilling/main.go
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-01-25 17:57:28 -0800
committerFranck Cuny <franck@fcuny.net>2024-01-25 17:57:28 -0800
commit082958845b1283bf57189ff52c3b8fab09fedceb (patch)
treed96ba65f19cf565bb030a2a4fe9d7b917918689b /cmd/ghabilling/main.go
parentdelete some unused code (diff)
downloadworld-082958845b1283bf57189ff52c3b8fab09fedceb.tar.gz
fail if the token is missing
Diffstat (limited to 'cmd/ghabilling/main.go')
-rw-r--r--cmd/ghabilling/main.go1
1 files changed, 1 insertions, 0 deletions
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()