HomePhabricator

tests: Add exception error message for JSONRPCException

Description

tests: Add exception error message for JSONRPCException

This improves error reporting if JSONRPCException is not specifically caught
and ends up in Python's default backtrace handler.

Before:

Traceback (most recent call last):
  File "/.../projects/bitcoin/bitcoin/qa/rpc-tests/test_framework/authproxy.py", line 153, in __call__
    raise JSONRPCException(response['error'])
test_framework.authproxy.JSONRPCException

After:

Traceback (most recent call last):
  File "/.../projects/bitcoin/bitcoin/qa/rpc-tests/test_framework/authproxy.py", line 152, in __call__
    raise JSONRPCException(response['error'])
test_framework.authproxy.JSONRPCException: Unknown named parameter random (-8)

Details

Provenance
Wladimir J. van der Laan <laanwj@gmail.com>Authored on Sep 25 2016, 18:02
deadalnixPushed on May 14 2017, 22:04
Parents
rABC37871f216e0d: Merge #8807: [univalue] Pull subtree from upstream
Branches
Unknown
Tags
Unknown

Event Timeline

Wladimir J. van der Laan <laanwj@gmail.com> committed rABC42f6aed73187: tests: Add exception error message for JSONRPCException (authored by Wladimir J. van der Laan <laanwj@gmail.com>).Sep 25 2016, 18:05