Print better errors, and add util stop_node() function.

This commit is contained in:
Gavin Andresen
2014-07-08 21:24:40 -04:00
parent e8097f7df1
commit f5a92bf9bd
2 changed files with 14 additions and 5 deletions

View File

@@ -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])