univalue: Return more detailed type check error messages

This commit is contained in:
MacroFake
2022-07-18 11:13:22 +02:00
parent fafab147e7
commit fae5ce8795
11 changed files with 41 additions and 40 deletions

View File

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