aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/test_framework.py
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2014-07-08 21:24:40 -0400
committerGavin Andresen <gavinandresen@gmail.com>2014-07-09 10:19:46 -0400
commitf5a92bf9bd9e5547cb8b4c0084c7e23c36b49b70 (patch)
treee9c3fe67e8b1ed94a52014b167c5e6d4bb54438d /qa/rpc-tests/test_framework.py
parente8097f7df164b4bf799963e5ab2539c36079187d (diff)
Print better errors, and add util stop_node() function.
Diffstat (limited to 'qa/rpc-tests/test_framework.py')
-rwxr-xr-xqa/rpc-tests/test_framework.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/qa/rpc-tests/test_framework.py b/qa/rpc-tests/test_framework.py
index a9b3d236b5..5a18556655 100755
--- a/qa/rpc-tests/test_framework.py
+++ b/qa/rpc-tests/test_framework.py
@@ -68,8 +68,12 @@ class BitcoinTestFramework(object):
success = True
+ except JSONRPCException as e:
+ print("JSONRPC error: "+e.error['message'])
+ traceback.print_tb(sys.exc_info()[2])
except AssertionError as e:
print("Assertion failed: "+e.message)
+ traceback.print_tb(sys.exc_info()[2])
except Exception as e:
print("Unexpected exception caught during testing: "+str(e))
traceback.print_tb(sys.exc_info()[2])