Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

login: wrap error returned from browser.OpenURL with type OpenBrowserError #120

Closed
wants to merge 1 commit into from

Conversation

cmdpdx
Copy link
Collaborator

@cmdpdx cmdpdx commented Feb 27, 2024

browser.OpenURL returns a few different errors, depending on the OS. To make it simplier to determine if an error returned from login.Login is related to browser.OpenURL, wrap the error returned from the latter with OpenBrowserError so clients can act accordingly.

Signed-off-by: Colin Douglas <colin@chainguard.dev>
@cmdpdx cmdpdx enabled auto-merge (squash) February 27, 2024 01:28
@cmdpdx cmdpdx disabled auto-merge February 27, 2024 01:28
@cmdpdx cmdpdx closed this Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant