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

@@ -414,7 +414,7 @@ class WalletTest(BitcoinTestFramework):
assert_raises_rpc_error(-3, "Invalid amount", self.nodes[0].sendtoaddress, self.nodes[2].getnewaddress(), "1f-4")
# This will raise an exception since generate does not accept a string
assert_raises_rpc_error(-1, "not an integer", self.generate, self.nodes[0], "2")
assert_raises_rpc_error(-1, "not of expected type number", self.generate, self.nodes[0], "2")
if not self.options.descriptors: