Skip to content

Commit

Permalink
chore: update go-vela dependencies (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
Neal authored Feb 13, 2020
1 parent 561b958 commit 17d3a27
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 17d3a27

Please sign in to comment.