From 17d3a27a059352a8bd65bc5722fc513b932ef67a Mon Sep 17 00:00:00 2001 From: Neal Date: Thu, 13 Feb 2020 15:20:26 -0600 Subject: [PATCH] chore: update go-vela dependencies (#51) --- cmd/login.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/login.go b/cmd/login.go index 8b0aba97..2e0c0ebb 100644 --- a/cmd/login.go +++ b/cmd/login.go @@ -89,7 +89,10 @@ func authenticate(c *cli.Context) error { auth, resp, err := client.Authorization.Login(&req) if err != nil { - return err + //TODO: clean this workflow up + if resp.StatusCode != http.StatusUnauthorized { + return err + } } // If user hits an endpoint other than the