Skip to content

Commit

Permalink
Don't exit when failing to open a browser during login (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasmik authored Jun 22, 2023
1 parent 834cbb8 commit a3c1ca5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/cmd/profile/login_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,7 @@ func loginUsingWebBrowser(ctx *cli.Context, creds *session.StoredCredentials) er
fmt.Printf("\nOpening browser to %s\n\n", browserURL)

if err := browser.OpenURL(browserURL); err != nil {
server.Close()
return err
fmt.Printf("Failed to open the browser: %s\nPlease open the URL manually\n\n", err.Error())
}

fmt.Println("Waiting for login...")
Expand Down

0 comments on commit a3c1ca5

Please sign in to comment.