Skip to content

Commit ab553bf

Browse files
random-zebraFuzzbawls
authored andcommitted
[Tests] Debug assert_raises_rpc_error
Github-Pull: #1218 Rebased-From: 261bb6a
1 parent 76531e2 commit ab553bf

File tree

1 file changed

+1
-1
lines changed
  • test/functional/test_framework

1 file changed

+1
-1
lines changed

test/functional/test_framework/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def try_rpc(code, message, fun, *args, **kwds):
115115
if (code is not None) and (code != e.error["code"]):
116116
raise AssertionError("Unexpected JSONRPC error code %i" % e.error["code"])
117117
if (message is not None) and (message not in e.error['message']):
118-
raise AssertionError("Expected substring not found:" + e.error['message'])
118+
raise AssertionError("Expected substring (%s) not found in: %s" % (message, e.error['message']))
119119
return True
120120
except Exception as e:
121121
raise AssertionError("Unexpected exception raised: " + type(e).__name__)

0 commit comments

Comments
 (0)