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

Fix exception handling during Tor setup #2538

Conversation

devinbileck
Copy link
Member

A recent change in the netlayer is now seeing exceptions wrapped in
a TorCtlException if an error occurs while setting up Tor.

So when an issue such as "Auth cookie not created" (#2398) occurs,
which was previously raised as an IOException, it was restarting Tor
rather than showing the error message to the user.

A recent change in the netlayer is now seeing exceptions wrapped in
a TorCtlException if an error occurs while setting up Tor.

So when an issue such as "Auth cookie not created" (bisq-network#2398) occurs,
which was previously raised as an IOException, it was restarting Tor
rather than showing the error message to the user.
@devinbileck
Copy link
Member Author

@freimair can you confirm exceptions wrapped in a TorCtlException is the expected behaviour?

@ManfredKarrer ManfredKarrer requested review from freimair and removed request for ManfredKarrer March 14, 2019 23:53
@ManfredKarrer
Copy link
Member

@freimair I leave the review to you.

Copy link
Member

@freimair freimair left a comment

Choose a reason for hiding this comment

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

ACK

Slowly cleaning up the netlayer stuff. Maybe I introduce some custom exceptions instead of wrapping all and everything in this dubious TorCtlException...

@ManfredKarrer ManfredKarrer merged commit a7dacbf into bisq-network:master Mar 18, 2019
@devinbileck devinbileck deleted the fix-handling-exception-during-tor-setup branch March 18, 2019 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants