From a3c1ca5741360eda671890379f5dfa045047c09c Mon Sep 17 00:00:00 2001 From: Tomas <40318863+tomasmik@users.noreply.github.com> Date: Thu, 22 Jun 2023 16:49:57 +0300 Subject: [PATCH] Don't exit when failing to open a browser during login (#156) --- internal/cmd/profile/login_command.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/cmd/profile/login_command.go b/internal/cmd/profile/login_command.go index 4049611..a2b7c7c 100644 --- a/internal/cmd/profile/login_command.go +++ b/internal/cmd/profile/login_command.go @@ -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...")