Skip to content

Commit

Permalink
fix: log and ignore error opening browser
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge committed Mar 13, 2024
1 parent 8fa2595 commit 065ec57
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/login/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,8 @@ func Run(ctx context.Context, stdout *os.File, params RunParams) error {

if params.OpenBrowser {
fmt.Fprintf(stdout, "Here is your login link in case browser did not open %s\n\n", utils.Bold(createLoginSessionUrl))

if err := RunOpenCmd(ctx, createLoginSessionUrl); err != nil {
return errors.Errorf("cannot open default browser: %w", err)
fmt.Fprintln(os.Stderr, err)
}
} else {
fmt.Fprintf(stdout, "Here is your login link, open it in the browser %s\n\n", utils.Bold(createLoginSessionUrl))
Expand Down

0 comments on commit 065ec57

Please sign in to comment.