diff options
author | Franck Cuny <franck@fcuny.net> | 2024-01-25 17:57:28 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2024-01-25 17:57:28 -0800 |
commit | 082958845b1283bf57189ff52c3b8fab09fedceb (patch) | |
tree | d96ba65f19cf565bb030a2a4fe9d7b917918689b | |
parent | delete some unused code (diff) | |
download | world-082958845b1283bf57189ff52c3b8fab09fedceb.tar.gz |
fail if the token is missing
-rw-r--r-- | cmd/ghabilling/main.go | 1 |
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() |