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

Distinguish connection or server error during client.Exchange() #104

Open
ilkondr opened this issue Aug 24, 2022 · 1 comment
Open

Distinguish connection or server error during client.Exchange() #104

ilkondr opened this issue Aug 24, 2022 · 1 comment

Comments

@ilkondr
Copy link

ilkondr commented Aug 24, 2022

Hi there!

Is there a way to check error type to distinguish connection/server error from packet encoding error?
I need to walk thru the list of Radius servers and now it's not clear if I need to try next server or stop.

Thanks

@ghost
Copy link

ghost commented Aug 30, 2022

There is not a great solution for this right now. Ideally, each type of error that this library would return would have its own specific error type that could be used in conjunction with errors.Is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant