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

Azure SSH: provide user friendly error messages #152

Conversation

GGonryun
Copy link
Contributor

@GGonryun GGonryun commented Dec 6, 2024

This PR applies a small refactor that improves the error handling of during auth steps for the Azure SSH plugin. When a user cancels their login attempt or if we fail to set the users active Azure subscription. The refactor introduces a knew KnownError type and a utility method normalizeAzureCliError that should make it easy to extend and capture new errors as we discover them.

@GGonryun GGonryun self-assigned this Dec 6, 2024
@GGonryun GGonryun merged commit a9c8f91 into main Dec 6, 2024
3 checks passed
@GGonryun GGonryun deleted the miguelcampos/eng-3259-azure-jit-provide-user-friendly-error-message-when-logging branch December 6, 2024 23:15
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.

2 participants