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

Decode electrum error response #1

Merged
merged 1 commit into from
Nov 21, 2021
Merged

Conversation

bitbandi
Copy link
Contributor

Electrum response the error a json object with code and message fields: https://github.com/spesmilo/electrum/blob/62e1d8ed78635ca6566078583c11933581c0212b/electrum/daemon.py#L232-L235

If there is an error response from electrum (with MarinX/rpc#1), the decoded custom error object is returned.
Can be used any error function same as standard golang error object.

@MarinX
Copy link
Owner

MarinX commented Nov 21, 2021

Nice! Thanks.

@MarinX MarinX merged commit adb86b0 into MarinX:master Nov 21, 2021
@bitbandi bitbandi deleted the decode-error branch November 22, 2021 17:44
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