Skip to content

Conversation

@heath
Copy link
Contributor

@heath heath commented Nov 24, 2014

Previously bitrpc was returning generic errors. I threw in a raise which provides useful info.
@laanwj mentioned it wouldn't be a good idea to raise after catching the exception.
And so I changed it. Apologies for opening a new PR instead of updating the existing one.

@kanzure
Copy link
Contributor

kanzure commented Nov 24, 2014

Seems to be a follow-up to #5354

@laanwj
Copy link
Member

laanwj commented Dec 2, 2014

Slightly tested ACK.

BTW unrelated to this pull, this script is a pain to set up and is a mess.

  • Doesn't support testnet by default
  • Doesn't read bitcoin.conf files - needs user/pass to be provided in text of program itself encouraging accidental committing
  • There's lot of repitition.
  • Should use AuthServiceProxy that is included in the tree instead of having a dependency on a 'jsonrpc' module

Anyone volunteering to give this a overhaul? Or would it be better to just remove it? Main argument I've heard for including this is that entering the walletpassphrase on the command line is safer than passing it as argument to bitcoin-cli, but this is not exactly convenient to use.

@laanwj laanwj merged commit 71acb86 into bitcoin:master Mar 18, 2015
laanwj added a commit that referenced this pull request Mar 18, 2015
71acb86 print the caught error instead of raising an error (Heath)
@casey casey mentioned this pull request Aug 3, 2015
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants