univalue: Return more detailed type check error messages

This commit is contained in:
MacroFake committed 2022-07-18 11:31:36 +02:00
1 parent fafab147e7
commit fae5ce8795
11 files changed
+41 -40

No files matched your search

+1 -1
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')