aboutsummaryrefslogtreecommitdiff
path: root/test/functional/rpc_getdescriptorinfo.py
diff options
context:
space:
mode:
authorfurszy <matiasfurszyfer@protonmail.com>2022-09-12 10:04:15 -0300
committerfurszy <matiasfurszyfer@protonmail.com>2022-09-12 10:04:15 -0300
commit2870a97121ebeb4750a8d72cd5f39d9600767bc4 (patch)
tree102300a9ed5c5b73408ddc0fd0500252118370f6 /test/functional/rpc_getdescriptorinfo.py
parent5558d2f5496d8fe1c16f9edd1ef395fcd842e6fb (diff)
RPC: unify arg type error message
We were throwing two different errors for the same problematic: * "Expected type {expected], got {type}" --> RPCTypeCheckArgument() * "JSON value of type {type} is not of expected type {expected}" --> UniValue::checkType()
Diffstat (limited to 'test/functional/rpc_getdescriptorinfo.py')
-rwxr-xr-xtest/functional/rpc_getdescriptorinfo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/rpc_getdescriptorinfo.py b/test/functional/rpc_getdescriptorinfo.py
index 5e6fd66aab..1b0f411e52 100755
--- a/test/functional/rpc_getdescriptorinfo.py
+++ b/test/functional/rpc_getdescriptorinfo.py
@@ -29,7 +29,7 @@ class DescriptorTest(BitcoinTestFramework):
def run_test(self):
assert_raises_rpc_error(-1, 'getdescriptorinfo', self.nodes[0].getdescriptorinfo)
- assert_raises_rpc_error(-3, 'Expected type string', self.nodes[0].getdescriptorinfo, 1)
+ assert_raises_rpc_error(-3, 'JSON value of type number is not of expected type string', self.nodes[0].getdescriptorinfo, 1)
assert_raises_rpc_error(-5, "'' is not a valid descriptor function", self.nodes[0].getdescriptorinfo, "")
# P2PK output with the specified public key.