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

[feat]: More precise handling of errors when verifying connectivity #242

Merged
merged 8 commits into from
Nov 29, 2024

Conversation

transistive
Copy link
Collaborator

Currently, when we verify a connection, we catch any runtime exception.

This has led to confusing error handling, especially in more complex situations @exaby73 @AkshatSW.

When the connection can't be verified, we actually just want to check if we can reach the server. If any other error (e.g., Authentication errors) appears, we shouldn't handle it and let it bubble up so the end user is aware the connection is valid but some other client error happened.

@exaby73 exaby73 marked this pull request as ready for review November 29, 2024 06:22
@exaby73 exaby73 force-pushed the feat/improved-connection-failure-handling branch from 43ca704 to f24c5bd Compare November 29, 2024 07:59
Copy link
Collaborator

@exaby73 exaby73 left a comment

Choose a reason for hiding this comment

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

LGTM from @transistive

@transistive transistive merged commit 7492476 into main Nov 29, 2024
12 checks passed
@transistive transistive deleted the feat/improved-connection-failure-handling branch November 29, 2024 08:02
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