From 1acd61ab078c99a46cd8e6c8c4ab12c9ca88b204 Mon Sep 17 00:00:00 2001 From: Palash Nigam Date: Mon, 9 Jul 2018 00:09:55 +0530 Subject: [PATCH] config: Fail if ClientID not provided Fixes https://github.com/taskcluster/taskcluster-cli/issues/191 --- config/init.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/init.go b/config/init.go index 3367abc..0cf6e4c 100644 --- a/config/init.go +++ b/config/init.go @@ -45,4 +45,8 @@ func Setup() { AuthorizedScopes: authorizedScopes, } } + if ok1 || ok2 { + fmt.Println("Either ClientID or Access Token not set") + os.Exit(1) + } }