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

Display more explicit error message when connection fails #1820

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

sebjulliand
Copy link
Collaborator

Changes

This PR makes the connection failure messages more explicit, depending on the error.

There are three error cases for which we provide an explicit message:

  • Host is unreachable
  • Port is unreachable
  • Credentials are wrong

If the error case cannot be determined from the error returned by SSH, then the error is displayed as it used to be.

Example of the three possible messages:
image

@sebjulliand sebjulliand added the enhancement New feature or request label Feb 1, 2024
@sebjulliand sebjulliand requested a review from a team February 1, 2024 22:47
@sebjulliand sebjulliand self-assigned this Feb 1, 2024
Copy link
Collaborator

@chrjorgensen chrjorgensen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sebjulliand Nice PR - works as expected. 👍

Only a small comment...

Copy link
Collaborator

@chrjorgensen chrjorgensen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sebjulliand Okay - approved, merge when you feel for it... 🎉

@sebjulliand sebjulliand merged commit 807080a into master Feb 2, 2024
1 check passed
@sebjulliand sebjulliand deleted the feature/connectionFailure branch February 2, 2024 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants