Skip to content

Commit

Permalink
browser error should not be fatal
Browse files Browse the repository at this point in the history
  • Loading branch information
hickford committed Oct 28, 2024
1 parent bdd26d3 commit 79a4412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ func getToken(ctx context.Context, c oauth2.Config, authURLSuffix string) (*oaut
if _, err := exec.LookPath(open); err == nil {
err = exec.Command(open, p...).Run()
if err != nil {
return nil, err
fmt.Fprintf(os.Stderr, "Unable to open browser using '%s': %s\n", open, err)
}
}
query := <-queries
Expand Down

0 comments on commit 79a4412

Please sign in to comment.