mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-01 00:10:44 +01:00
univalue: Return more detailed type check error messages
This commit is contained in:
@@ -92,7 +92,7 @@ class HelpRpcTest(BitcoinTestFramework):
|
||||
assert_raises_rpc_error(-1, 'help', node.help, 'foo', 'bar')
|
||||
|
||||
# invalid argument
|
||||
assert_raises_rpc_error(-1, 'JSON value is not a string as expected', node.help, 0)
|
||||
assert_raises_rpc_error(-1, "JSON value of type number is not of expected type string", node.help, 0)
|
||||
|
||||
# help of unknown command
|
||||
assert_equal(node.help('foo'), 'help: unknown command: foo')
|
||||
|
||||
Reference in New Issue
Block a user