print the caught error instead of raising an error #5360

pull heath wants to merge 1 commits into bitcoin:master from heath:fix/useful-errors-for-bitrpc changing 1 files +71 −73
  1. heath commented at 6:38 PM on November 24, 2014: contributor

    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.

  2. print the caught error instead of raising an error 71acb86540
  3. kanzure commented at 6:45 PM on November 24, 2014: contributor

    Seems to be a follow-up to #5354

  4. laanwj added the label Docs and Output on Dec 2, 2014
  5. laanwj commented at 3:19 PM on December 2, 2014: member

    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.

  6. laanwj merged this on Mar 18, 2015
  7. laanwj closed this on Mar 18, 2015

  8. laanwj referenced this in commit 29fef0b903 on Mar 18, 2015
  9. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 21:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me